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

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

Issue 1975533002: Change ui::Event::time_stamp from TimeDelta to TimeTicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 2781 matching lines...) Expand 10 before | Expand all | Expand 10 after
2792 tsc_config.enable_longpress_drag_selection = false; 2792 tsc_config.enable_longpress_drag_selection = false;
2793 selection_controller_.reset(new ui::TouchSelectionController( 2793 selection_controller_.reset(new ui::TouchSelectionController(
2794 selection_controller_client_.get(), tsc_config)); 2794 selection_controller_client_.get(), tsc_config));
2795 } 2795 }
2796 2796
2797 void RenderWidgetHostViewAura::HandleGestureForTouchSelection( 2797 void RenderWidgetHostViewAura::HandleGestureForTouchSelection(
2798 ui::GestureEvent* event) { 2798 ui::GestureEvent* event) {
2799 switch (event->type()) { 2799 switch (event->type()) {
2800 case ui::ET_GESTURE_LONG_PRESS: 2800 case ui::ET_GESTURE_LONG_PRESS:
2801 if (selection_controller_->WillHandleLongPressEvent( 2801 if (selection_controller_->WillHandleLongPressEvent(
2802 base::TimeTicks() + event->time_stamp(), event->location_f())) { 2802 event->time_stamp(), event->location_f())) {
2803 event->SetHandled(); 2803 event->SetHandled();
2804 } 2804 }
2805 break; 2805 break;
2806 case ui::ET_GESTURE_TAP: 2806 case ui::ET_GESTURE_TAP:
2807 if (selection_controller_->WillHandleTapEvent( 2807 if (selection_controller_->WillHandleTapEvent(
2808 event->location_f(), event->details().tap_count())) { 2808 event->location_f(), event->details().tap_count())) {
2809 event->SetHandled(); 2809 event->SetHandled();
2810 } 2810 }
2811 break; 2811 break;
2812 case ui::ET_GESTURE_SCROLL_BEGIN: 2812 case ui::ET_GESTURE_SCROLL_BEGIN:
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
3021 3021
3022 //////////////////////////////////////////////////////////////////////////////// 3022 ////////////////////////////////////////////////////////////////////////////////
3023 // RenderWidgetHostViewBase, public: 3023 // RenderWidgetHostViewBase, public:
3024 3024
3025 // static 3025 // static
3026 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { 3026 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) {
3027 GetScreenInfoForWindow(results, NULL); 3027 GetScreenInfoForWindow(results, NULL);
3028 } 3028 }
3029 3029
3030 } // namespace content 3030 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698