| 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 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 2648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2659 tsc_config.enable_longpress_drag_selection = false; | 2659 tsc_config.enable_longpress_drag_selection = false; |
| 2660 selection_controller_.reset(new ui::TouchSelectionController( | 2660 selection_controller_.reset(new ui::TouchSelectionController( |
| 2661 selection_controller_client_.get(), tsc_config)); | 2661 selection_controller_client_.get(), tsc_config)); |
| 2662 } | 2662 } |
| 2663 | 2663 |
| 2664 void RenderWidgetHostViewAura::HandleGestureForTouchSelection( | 2664 void RenderWidgetHostViewAura::HandleGestureForTouchSelection( |
| 2665 ui::GestureEvent* event) { | 2665 ui::GestureEvent* event) { |
| 2666 switch (event->type()) { | 2666 switch (event->type()) { |
| 2667 case ui::ET_GESTURE_LONG_PRESS: | 2667 case ui::ET_GESTURE_LONG_PRESS: |
| 2668 if (selection_controller_->WillHandleLongPressEvent( | 2668 if (selection_controller_->WillHandleLongPressEvent( |
| 2669 base::TimeTicks() + event->time_stamp(), event->location_f())) { | 2669 event->time_stamp(), event->location_f())) { |
| 2670 event->SetHandled(); | 2670 event->SetHandled(); |
| 2671 } | 2671 } |
| 2672 break; | 2672 break; |
| 2673 case ui::ET_GESTURE_TAP: | 2673 case ui::ET_GESTURE_TAP: |
| 2674 if (selection_controller_->WillHandleTapEvent( | 2674 if (selection_controller_->WillHandleTapEvent( |
| 2675 event->location_f(), event->details().tap_count())) { | 2675 event->location_f(), event->details().tap_count())) { |
| 2676 event->SetHandled(); | 2676 event->SetHandled(); |
| 2677 } | 2677 } |
| 2678 break; | 2678 break; |
| 2679 case ui::ET_GESTURE_SCROLL_BEGIN: | 2679 case ui::ET_GESTURE_SCROLL_BEGIN: |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2855 | 2855 |
| 2856 //////////////////////////////////////////////////////////////////////////////// | 2856 //////////////////////////////////////////////////////////////////////////////// |
| 2857 // RenderWidgetHostViewBase, public: | 2857 // RenderWidgetHostViewBase, public: |
| 2858 | 2858 |
| 2859 // static | 2859 // static |
| 2860 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { | 2860 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { |
| 2861 GetScreenInfoForWindow(results, NULL); | 2861 GetScreenInfoForWindow(results, NULL); |
| 2862 } | 2862 } |
| 2863 | 2863 |
| 2864 } // namespace content | 2864 } // namespace content |
| OLD | NEW |