| 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_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/public/browser/keyboard_listener.h" | 10 #include "content/public/browser/keyboard_listener.h" |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 GdkWindow* target) = 0; | 196 GdkWindow* target) = 0; |
| 197 #elif defined(OS_MACOSX) | 197 #elif defined(OS_MACOSX) |
| 198 virtual gfx::Size GetBackingStoreSize() = 0; | 198 virtual gfx::Size GetBackingStoreSize() = 0; |
| 199 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect, | 199 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect, |
| 200 CGContextRef target) = 0; | 200 CGContextRef target) = 0; |
| 201 #endif | 201 #endif |
| 202 | 202 |
| 203 // Send a command to the renderer to turn on full accessibility. | 203 // Send a command to the renderer to turn on full accessibility. |
| 204 virtual void EnableFullAccessibilityMode() = 0; | 204 virtual void EnableFullAccessibilityMode() = 0; |
| 205 | 205 |
| 206 virtual bool GetAccessibilityEnabled() const = 0; |
| 207 virtual void SetAccessibilityEnabled(bool enabled) = 0; |
| 208 |
| 206 // Forwards the given message to the renderer. These are called by | 209 // Forwards the given message to the renderer. These are called by |
| 207 // the view when it has received a message. | 210 // the view when it has received a message. |
| 208 virtual void ForwardMouseEvent( | 211 virtual void ForwardMouseEvent( |
| 209 const WebKit::WebMouseEvent& mouse_event) = 0; | 212 const WebKit::WebMouseEvent& mouse_event) = 0; |
| 210 virtual void ForwardWheelEvent( | 213 virtual void ForwardWheelEvent( |
| 211 const WebKit::WebMouseWheelEvent& wheel_event) = 0; | 214 const WebKit::WebMouseWheelEvent& wheel_event) = 0; |
| 212 virtual void ForwardKeyboardEvent( | 215 virtual void ForwardKeyboardEvent( |
| 213 const NativeWebKeyboardEvent& key_event) = 0; | 216 const NativeWebKeyboardEvent& key_event) = 0; |
| 214 | 217 |
| 215 virtual const gfx::Vector2d& GetLastScrollOffset() const = 0; | 218 virtual const gfx::Vector2d& GetLastScrollOffset() const = 0; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 // within content/. This method is necessary because | 294 // within content/. This method is necessary because |
| 292 // RenderWidgetHost is the root of a diamond inheritance pattern, so | 295 // RenderWidgetHost is the root of a diamond inheritance pattern, so |
| 293 // subclasses inherit it virtually, which removes our ability to | 296 // subclasses inherit it virtually, which removes our ability to |
| 294 // static_cast to the subclass. | 297 // static_cast to the subclass. |
| 295 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0; | 298 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0; |
| 296 }; | 299 }; |
| 297 | 300 |
| 298 } // namespace content | 301 } // namespace content |
| 299 | 302 |
| 300 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 303 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
| OLD | NEW |