@Override
 protected boolean onInterceptTouchEventInternal(MotionEvent event, boolean isKeyboardShowing) {
   // TODO(pedrosimonetti): isKeyboardShowing has the wrong value after
   // rotating the device. We don't really need to check whether the
   // keyboard is showing here because Contextual Search's Panel will
   // be closed, if opened, when the keyboard shows up. Even so,
   // it would be nice fixing this problem in Chrome-Android.
   OverlayPanel activePanel = mPanelManager.getActivePanel();
   return activePanel != null
       && activePanel.isPeeking()
       && activePanel.isCoordinateInsideBar(
           event.getX() * mPxToDp, activePanel.getFullscreenY(event.getY()) * mPxToDp);
 }
  @Override
  protected boolean onTouchEventInternal(MotionEvent event) {
    OverlayPanel activePanel = mPanelManager.getActivePanel();
    if (activePanel == null) return false;

    if (event.getActionMasked() == MotionEvent.ACTION_DOWN) {
      // To avoid a gray flash of empty content, show the search content
      // view immediately on tap rather than waiting for panel expansion.
      // TODO(pedrosimonetti): Once we implement "side-swipe to dismiss"
      // we'll have to revisit this because we don't want to set the
      // Content View visibility to true when the side-swipe is detected.
      activePanel.notifyPanelTouched();
    }

    mSwipeRecognizer.onTouchEvent(event);
    return true;
  }