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

Side by Side Diff: content/port/browser/render_widget_host_view_port.h

Issue 11148008: touch-event queue: Add a touch-event queue for all platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 8 years, 2 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 | Annotate | Revision Log
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 #ifndef CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 5 #ifndef CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 static void GetDefaultScreenInfo( 254 static void GetDefaultScreenInfo(
255 WebKit::WebScreenInfo* results); 255 WebKit::WebScreenInfo* results);
256 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0; 256 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0;
257 virtual gfx::Rect GetBoundsInRootWindow() = 0; 257 virtual gfx::Rect GetBoundsInRootWindow() = 0;
258 #endif 258 #endif
259 259
260 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; 260 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0;
261 261
262 // Because the associated remote WebKit instance can asynchronously 262 // Because the associated remote WebKit instance can asynchronously
263 // prevent-default on a dispatched touch event, the touch events are queued in 263 // prevent-default on a dispatched touch event, the touch events are queued in
264 // the GestureRecognizer until invocation of ProcessTouchAck releases it to be 264 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases
265 // processed (when |processed| is false) or ignored (when |processed| is true) 265 // it to be processed (when |processed| is false) or ignored (when |processed|
266 virtual void ProcessTouchAck(bool processed) = 0; 266 // is true).
267 virtual void ProcessAckedTouchEvent(const WebKit::WebTouchEvent& touch,
268 bool processed) = 0;
267 269
268 // Asks the view to create a smooth scroll gesture that will be used to 270 // Asks the view to create a smooth scroll gesture that will be used to
269 // simulate a user-initiated scroll. 271 // simulate a user-initiated scroll.
270 virtual SmoothScrollGesture* CreateSmoothScrollGesture( 272 virtual SmoothScrollGesture* CreateSmoothScrollGesture(
271 bool scroll_down, bool scroll_far, int mouse_event_x, 273 bool scroll_down, bool scroll_far, int mouse_event_x,
272 int mouse_event_y) = 0; 274 int mouse_event_y) = 0;
273 275
274 virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) = 0; 276 virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) = 0;
275 virtual void SetScrollOffsetPinning( 277 virtual void SetScrollOffsetPinning(
276 bool is_pinned_to_left, bool is_pinned_to_right) = 0; 278 bool is_pinned_to_left, bool is_pinned_to_right) = 0;
277 279
278 // Called when a mousewheel event was not processed by the renderer. 280 // Called when a mousewheel event was not processed by the renderer.
279 virtual void UnhandledWheelEvent(const WebKit::WebMouseWheelEvent& event) = 0; 281 virtual void UnhandledWheelEvent(const WebKit::WebMouseWheelEvent& event) = 0;
280 282
281 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0; 283 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0;
282 virtual WebKit::WebPopupType GetPopupType() = 0; 284 virtual WebKit::WebPopupType GetPopupType() = 0;
283 285
284 virtual BrowserAccessibilityManager* 286 virtual BrowserAccessibilityManager*
285 GetBrowserAccessibilityManager() const = 0; 287 GetBrowserAccessibilityManager() const = 0;
286 virtual void OnAccessibilityNotifications( 288 virtual void OnAccessibilityNotifications(
287 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { 289 const std::vector<AccessibilityHostMsg_NotificationParams>& params) {
288 } 290 }
289 }; 291 };
290 292
291 } // namespace content 293 } // namespace content
292 294
293 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 295 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
OLDNEW
« content/browser/renderer_host/render_widget_host_impl.cc ('K') | « content/content_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698