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 | 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 ProcessTouchAck releases it to be |
265 // processed (when |processed| is false) or ignored (when |processed| is true) | 265 // processed (when |processed| is false) or ignored (when |processed| is true) |
266 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type, | 266 virtual void ProcessTouchAck(bool processed) = 0; |
267 bool processed) = 0; | |
268 | 267 |
269 // Asks the view to create a smooth scroll gesture that will be used to | 268 // Asks the view to create a smooth scroll gesture that will be used to |
270 // simulate a user-initiated scroll. | 269 // simulate a user-initiated scroll. |
271 virtual SmoothScrollGesture* CreateSmoothScrollGesture( | 270 virtual SmoothScrollGesture* CreateSmoothScrollGesture( |
272 bool scroll_down, bool scroll_far, int mouse_event_x, | 271 bool scroll_down, bool scroll_far, int mouse_event_x, |
273 int mouse_event_y) = 0; | 272 int mouse_event_y) = 0; |
274 | 273 |
275 virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) = 0; | 274 virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) = 0; |
276 virtual void SetScrollOffsetPinning( | 275 virtual void SetScrollOffsetPinning( |
277 bool is_pinned_to_left, bool is_pinned_to_right) = 0; | 276 bool is_pinned_to_left, bool is_pinned_to_right) = 0; |
278 | 277 |
279 // Called when a mousewheel event was not processed by the renderer. | 278 // Called when a mousewheel event was not processed by the renderer. |
280 virtual void UnhandledWheelEvent(const WebKit::WebMouseWheelEvent& event) = 0; | 279 virtual void UnhandledWheelEvent(const WebKit::WebMouseWheelEvent& event) = 0; |
281 | 280 |
282 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0; | 281 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0; |
283 virtual WebKit::WebPopupType GetPopupType() = 0; | 282 virtual WebKit::WebPopupType GetPopupType() = 0; |
284 | 283 |
285 virtual BrowserAccessibilityManager* | 284 virtual BrowserAccessibilityManager* |
286 GetBrowserAccessibilityManager() const = 0; | 285 GetBrowserAccessibilityManager() const = 0; |
287 virtual void OnAccessibilityNotifications( | 286 virtual void OnAccessibilityNotifications( |
288 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { | 287 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { |
289 } | 288 } |
290 }; | 289 }; |
291 | 290 |
292 } // namespace content | 291 } // namespace content |
293 | 292 |
294 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 293 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
OLD | NEW |