| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0; | 252 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0; |
| 253 virtual gfx::Rect GetBoundsInRootWindow() = 0; | 253 virtual gfx::Rect GetBoundsInRootWindow() = 0; |
| 254 #endif | 254 #endif |
| 255 | 255 |
| 256 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; | 256 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; |
| 257 | 257 |
| 258 // Because the associated remote WebKit instance can asynchronously | 258 // Because the associated remote WebKit instance can asynchronously |
| 259 // prevent-default on a dispatched touch event, the touch events are queued in | 259 // prevent-default on a dispatched touch event, the touch events are queued in |
| 260 // the GestureRecognizer until invocation of ProcessTouchAck releases it to be | 260 // the GestureRecognizer until invocation of ProcessTouchAck releases it to be |
| 261 // processed (when |processed| is false) or ignored (when |processed| is true) | 261 // processed (when |processed| is false) or ignored (when |processed| is true) |
| 262 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type, | 262 virtual void ProcessTouchAck(bool processed) = 0; |
| 263 bool processed) = 0; | |
| 264 | 263 |
| 265 // Asks the view to create a smooth scroll gesture that will be used to | 264 // Asks the view to create a smooth scroll gesture that will be used to |
| 266 // simulate a user-initiated scroll. | 265 // simulate a user-initiated scroll. |
| 267 virtual SmoothScrollGesture* CreateSmoothScrollGesture( | 266 virtual SmoothScrollGesture* CreateSmoothScrollGesture( |
| 268 bool scroll_down, bool scroll_far, int mouse_event_x, | 267 bool scroll_down, bool scroll_far, int mouse_event_x, |
| 269 int mouse_event_y) = 0; | 268 int mouse_event_y) = 0; |
| 270 | 269 |
| 271 virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) = 0; | 270 virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) = 0; |
| 272 virtual void SetScrollOffsetPinning( | 271 virtual void SetScrollOffsetPinning( |
| 273 bool is_pinned_to_left, bool is_pinned_to_right) = 0; | 272 bool is_pinned_to_left, bool is_pinned_to_right) = 0; |
| 274 | 273 |
| 275 // Called when a mousewheel event was not processed by the renderer. | 274 // Called when a mousewheel event was not processed by the renderer. |
| 276 virtual void UnhandledWheelEvent(const WebKit::WebMouseWheelEvent& event) = 0; | 275 virtual void UnhandledWheelEvent(const WebKit::WebMouseWheelEvent& event) = 0; |
| 277 | 276 |
| 278 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0; | 277 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0; |
| 279 virtual WebKit::WebPopupType GetPopupType() = 0; | 278 virtual WebKit::WebPopupType GetPopupType() = 0; |
| 280 | 279 |
| 281 virtual BrowserAccessibilityManager* | 280 virtual BrowserAccessibilityManager* |
| 282 GetBrowserAccessibilityManager() const = 0; | 281 GetBrowserAccessibilityManager() const = 0; |
| 283 virtual void OnAccessibilityNotifications( | 282 virtual void OnAccessibilityNotifications( |
| 284 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { | 283 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { |
| 285 } | 284 } |
| 286 }; | 285 }; |
| 287 | 286 |
| 288 } // namespace content | 287 } // namespace content |
| 289 | 288 |
| 290 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 289 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| OLD | NEW |