OLD | NEW |
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 Loading... |
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(WebKit::WebInputEvent::Type type, | 229 virtual void ProcessTouchAck(bool processed) = 0; |
230 bool processed) = 0; | |
231 | 230 |
232 virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) = 0; | 231 virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) = 0; |
233 virtual void SetScrollOffsetPinning( | 232 virtual void SetScrollOffsetPinning( |
234 bool is_pinned_to_left, bool is_pinned_to_right) = 0; | 233 bool is_pinned_to_left, bool is_pinned_to_right) = 0; |
235 | 234 |
236 // Return value indicates whether the mouse is locked successfully or not. | 235 // Return value indicates whether the mouse is locked successfully or not. |
237 virtual bool LockMouse() = 0; | 236 virtual bool LockMouse() = 0; |
238 virtual void UnlockMouse() = 0; | 237 virtual void UnlockMouse() = 0; |
239 virtual bool IsMouseLocked() = 0; | 238 virtual bool IsMouseLocked() = 0; |
240 | 239 |
241 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0; | 240 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0; |
242 virtual WebKit::WebPopupType GetPopupType() = 0; | 241 virtual WebKit::WebPopupType GetPopupType() = 0; |
243 | 242 |
244 virtual void OnAccessibilityNotifications( | 243 virtual void OnAccessibilityNotifications( |
245 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { | 244 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { |
246 } | 245 } |
247 }; | 246 }; |
248 | 247 |
249 } // namespace content | 248 } // namespace content |
250 | 249 |
251 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 250 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
OLD | NEW |