Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 1358263002: [Android] Support double-tap selection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix contextual search Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/render_widget_host_view_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 2769 matching lines...) Expand 10 before | Expand all | Expand 10 after
2780 void RenderWidgetHostViewAura::HandleGestureForTouchSelection( 2780 void RenderWidgetHostViewAura::HandleGestureForTouchSelection(
2781 ui::GestureEvent* event) { 2781 ui::GestureEvent* event) {
2782 switch (event->type()) { 2782 switch (event->type()) {
2783 case ui::ET_GESTURE_LONG_PRESS: 2783 case ui::ET_GESTURE_LONG_PRESS:
2784 if (selection_controller_->WillHandleLongPressEvent( 2784 if (selection_controller_->WillHandleLongPressEvent(
2785 base::TimeTicks() + event->time_stamp(), event->location_f())) { 2785 base::TimeTicks() + event->time_stamp(), event->location_f())) {
2786 event->SetHandled(); 2786 event->SetHandled();
2787 } 2787 }
2788 break; 2788 break;
2789 case ui::ET_GESTURE_TAP: 2789 case ui::ET_GESTURE_TAP:
2790 if (selection_controller_->WillHandleTapEvent(event->location_f())) 2790 if (selection_controller_->WillHandleTapEvent(
2791 event->location_f(), event->details().tap_count())) {
2791 event->SetHandled(); 2792 event->SetHandled();
2793 }
2792 break; 2794 break;
2793 case ui::ET_GESTURE_SCROLL_BEGIN: 2795 case ui::ET_GESTURE_SCROLL_BEGIN:
2794 selection_controller_client_->OnScrollStarted(); 2796 selection_controller_client_->OnScrollStarted();
2795 break; 2797 break;
2796 case ui::ET_GESTURE_SCROLL_END: 2798 case ui::ET_GESTURE_SCROLL_END:
2797 selection_controller_client_->OnScrollCompleted(); 2799 selection_controller_client_->OnScrollCompleted();
2798 break; 2800 break;
2799 default: 2801 default:
2800 break; 2802 break;
2801 } 2803 }
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
2880 2882
2881 //////////////////////////////////////////////////////////////////////////////// 2883 ////////////////////////////////////////////////////////////////////////////////
2882 // RenderWidgetHostViewBase, public: 2884 // RenderWidgetHostViewBase, public:
2883 2885
2884 // static 2886 // static
2885 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { 2887 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) {
2886 GetScreenInfoForWindow(results, NULL); 2888 GetScreenInfoForWindow(results, NULL);
2887 } 2889 }
2888 2890
2889 } // namespace content 2891 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | ui/events/gesture_detection/gesture_configuration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698