Bug 1041026 - Move search bar logic into custom view

It took a moment to parse this. Maybe add a comment? Is this the right ideas?: When the component is active, it passes touch events to the children. Otherwise it intercepts the touch events without passing them to the children.