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

Side by Side Diff: content/browser/renderer_host/input/input_router_impl.h

Issue 1440923002: Convert the coordinates in WebInputEvent To Viewport in InputRouter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 const MouseWheelEventWithLatencyInfo& wheel_event) override; 61 const MouseWheelEventWithLatencyInfo& wheel_event) override;
62 void SendKeyboardEvent( 62 void SendKeyboardEvent(
63 const NativeWebKeyboardEventWithLatencyInfo& key_event) override; 63 const NativeWebKeyboardEventWithLatencyInfo& key_event) override;
64 void SendGestureEvent( 64 void SendGestureEvent(
65 const GestureEventWithLatencyInfo& gesture_event) override; 65 const GestureEventWithLatencyInfo& gesture_event) override;
66 void SendTouchEvent(const TouchEventWithLatencyInfo& touch_event) override; 66 void SendTouchEvent(const TouchEventWithLatencyInfo& touch_event) override;
67 const NativeWebKeyboardEvent* GetLastKeyboardEvent() const override; 67 const NativeWebKeyboardEvent* GetLastKeyboardEvent() const override;
68 void NotifySiteIsMobileOptimized(bool is_mobile_optimized) override; 68 void NotifySiteIsMobileOptimized(bool is_mobile_optimized) override;
69 void RequestNotificationWhenFlushed() override; 69 void RequestNotificationWhenFlushed() override;
70 bool HasPendingEvents() const override; 70 bool HasPendingEvents() const override;
71 void SetDeviceScaleFactor(float device_scale_factor) override;
71 72
72 // IPC::Listener 73 // IPC::Listener
73 bool OnMessageReceived(const IPC::Message& message) override; 74 bool OnMessageReceived(const IPC::Message& message) override;
74 75
75 private: 76 private:
76 friend class InputRouterImplTest; 77 friend class InputRouterImplTest;
77 78
78 // TouchpadTapSuppressionControllerClient 79 // TouchpadTapSuppressionControllerClient
79 void SendMouseEventImmediately( 80 void SendMouseEventImmediately(
80 const MouseEventWithLatencyInfo& mouse_event) override; 81 const MouseEventWithLatencyInfo& mouse_event) override;
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 // end notification is asynchronous, we use a count rather than a boolean 245 // end notification is asynchronous, we use a count rather than a boolean
245 // to avoid races in bookkeeping when starting a new fling. 246 // to avoid races in bookkeeping when starting a new fling.
246 int active_renderer_fling_count_; 247 int active_renderer_fling_count_;
247 248
248 TouchEventQueue touch_event_queue_; 249 TouchEventQueue touch_event_queue_;
249 GestureEventQueue gesture_event_queue_; 250 GestureEventQueue gesture_event_queue_;
250 TouchActionFilter touch_action_filter_; 251 TouchActionFilter touch_action_filter_;
251 InputEventStreamValidator input_stream_validator_; 252 InputEventStreamValidator input_stream_validator_;
252 InputEventStreamValidator output_stream_validator_; 253 InputEventStreamValidator output_stream_validator_;
253 254
255 float device_scale_factor_;
256
254 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); 257 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl);
255 }; 258 };
256 259
257 } // namespace content 260 } // namespace content
258 261
259 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ 262 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/input/input_router.h ('k') | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698