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

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

Issue 9549020: Improve switch between gestures and touch mode when kEnableTouchEvents (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: simplify a bit Created 8 years, 9 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 #pragma once 7 #pragma once
8 8
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0; 219 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0;
220 virtual gfx::Rect GetRootWindowBounds() = 0; 220 virtual gfx::Rect GetRootWindowBounds() = 0;
221 #endif 221 #endif
222 222
223 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; 223 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0;
224 224
225 // Because the associated remote WebKit instance can asynchronously 225 // Because the associated remote WebKit instance can asynchronously
226 // prevent-default on a dispatched touch event, the touch events are queued in 226 // prevent-default on a dispatched touch event, the touch events are queued in
227 // the GestureRecognizer until invocation of ProcessTouchAck releases it to be 227 // the GestureRecognizer until invocation of ProcessTouchAck releases it to be
228 // processed (when |processed| is false) or ignored (when |processed| is true) 228 // processed (when |processed| is false) or ignored (when |processed| is true)
229 virtual void ProcessTouchAck(bool processed) = 0; 229 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type,
230 bool processed) = 0;
230 231
231 virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) = 0; 232 virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) = 0;
232 virtual void SetScrollOffsetPinning( 233 virtual void SetScrollOffsetPinning(
233 bool is_pinned_to_left, bool is_pinned_to_right) = 0; 234 bool is_pinned_to_left, bool is_pinned_to_right) = 0;
234 235
235 // Return value indicates whether the mouse is locked successfully or not. 236 // Return value indicates whether the mouse is locked successfully or not.
236 virtual bool LockMouse() = 0; 237 virtual bool LockMouse() = 0;
237 virtual void UnlockMouse() = 0; 238 virtual void UnlockMouse() = 0;
238 virtual bool IsMouseLocked() = 0; 239 virtual bool IsMouseLocked() = 0;
239 240
240 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0; 241 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0;
241 virtual WebKit::WebPopupType GetPopupType() = 0; 242 virtual WebKit::WebPopupType GetPopupType() = 0;
242 243
243 virtual void OnAccessibilityNotifications( 244 virtual void OnAccessibilityNotifications(
244 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { 245 const std::vector<AccessibilityHostMsg_NotificationParams>& params) {
245 } 246 }
246 }; 247 };
247 248
248 } // namespace content 249 } // namespace content
249 250
250 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 251 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698