OLD | NEW |
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 2777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2788 void RenderWidgetHostViewAura::HandleGestureForTouchSelection( | 2788 void RenderWidgetHostViewAura::HandleGestureForTouchSelection( |
2789 ui::GestureEvent* event) { | 2789 ui::GestureEvent* event) { |
2790 switch (event->type()) { | 2790 switch (event->type()) { |
2791 case ui::ET_GESTURE_LONG_PRESS: | 2791 case ui::ET_GESTURE_LONG_PRESS: |
2792 if (selection_controller_->WillHandleLongPressEvent( | 2792 if (selection_controller_->WillHandleLongPressEvent( |
2793 base::TimeTicks() + event->time_stamp(), event->location_f())) { | 2793 base::TimeTicks() + event->time_stamp(), event->location_f())) { |
2794 event->SetHandled(); | 2794 event->SetHandled(); |
2795 } | 2795 } |
2796 break; | 2796 break; |
2797 case ui::ET_GESTURE_TAP: | 2797 case ui::ET_GESTURE_TAP: |
2798 if (selection_controller_->WillHandleTapEvent(event->location_f())) | 2798 if (selection_controller_->WillHandleTapEvent( |
| 2799 event->location_f(), event->details().tap_count())) { |
2799 event->SetHandled(); | 2800 event->SetHandled(); |
| 2801 } |
2800 break; | 2802 break; |
2801 case ui::ET_GESTURE_SCROLL_BEGIN: | 2803 case ui::ET_GESTURE_SCROLL_BEGIN: |
2802 selection_controller_client_->OnScrollStarted(); | 2804 selection_controller_client_->OnScrollStarted(); |
2803 break; | 2805 break; |
2804 case ui::ET_GESTURE_SCROLL_END: | 2806 case ui::ET_GESTURE_SCROLL_END: |
2805 selection_controller_client_->OnScrollCompleted(); | 2807 selection_controller_client_->OnScrollCompleted(); |
2806 break; | 2808 break; |
2807 default: | 2809 default: |
2808 break; | 2810 break; |
2809 } | 2811 } |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2888 | 2890 |
2889 //////////////////////////////////////////////////////////////////////////////// | 2891 //////////////////////////////////////////////////////////////////////////////// |
2890 // RenderWidgetHostViewBase, public: | 2892 // RenderWidgetHostViewBase, public: |
2891 | 2893 |
2892 // static | 2894 // static |
2893 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { | 2895 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { |
2894 GetScreenInfoForWindow(results, NULL); | 2896 GetScreenInfoForWindow(results, NULL); |
2895 } | 2897 } |
2896 | 2898 |
2897 } // namespace content | 2899 } // namespace content |
OLD | NEW |