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

Side by Side Diff: content/browser/renderer_host/input/input_router.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
« no previous file with comments | « no previous file | content/browser/renderer_host/input/input_router_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/browser/renderer_host/event_with_latency_info.h" 9 #include "content/browser/renderer_host/event_with_latency_info.h"
10 #include "content/common/input/input_event_ack_state.h" 10 #include "content/common/input/input_event_ack_state.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // the site has a mobile-friendly viewport). 48 // the site has a mobile-friendly viewport).
49 virtual void NotifySiteIsMobileOptimized(bool is_mobile_optimized) = 0; 49 virtual void NotifySiteIsMobileOptimized(bool is_mobile_optimized) = 0;
50 50
51 // Request a notification from the input router when all events have been 51 // Request a notification from the input router when all events have been
52 // fully dispatched and there are no longer any pending events. 52 // fully dispatched and there are no longer any pending events.
53 // Note: This may trigger a synchronous notification if the router is empty. 53 // Note: This may trigger a synchronous notification if the router is empty.
54 virtual void RequestNotificationWhenFlushed() = 0; 54 virtual void RequestNotificationWhenFlushed() = 0;
55 55
56 // Whether there are any events pending dispatch to or ack from the renderer. 56 // Whether there are any events pending dispatch to or ack from the renderer.
57 virtual bool HasPendingEvents() const = 0; 57 virtual bool HasPendingEvents() const = 0;
58
59 // A scale factor to scale the coordinate in WebInputEvent from DIP
60 // to viewport.
61 virtual void SetDeviceScaleFactor(float device_scale_factor) = 0;
58 }; 62 };
59 63
60 } // namespace content 64 } // namespace content
61 65
62 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_ 66 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/input/input_router_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698