| 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "ui/gfx/native_widget_types.h" | 11 #include "ui/gfx/native_widget_types.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 class WebMouseWheelEvent; | 14 class WebMouseWheelEvent; |
| 15 class WebGestureEvent; | 15 class WebGestureEvent; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace gfx { | 18 namespace gfx { |
| 19 class Point; | 19 class Point; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace IPC { |
| 23 class Message; |
| 24 } |
| 25 |
| 22 namespace content { | 26 namespace content { |
| 23 | 27 |
| 24 class BrowserAccessibilityManager; | 28 class BrowserAccessibilityManager; |
| 25 class RenderWidgetHostImpl; | 29 class RenderWidgetHostImpl; |
| 26 class RenderWidgetHostInputEventRouter; | 30 class RenderWidgetHostInputEventRouter; |
| 27 struct NativeWebKeyboardEvent; | 31 struct NativeWebKeyboardEvent; |
| 28 | 32 |
| 29 // | 33 // |
| 30 // RenderWidgetHostDelegate | 34 // RenderWidgetHostDelegate |
| 31 // | 35 // |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 92 |
| 89 // Requests the renderer to move the selection extent to a new position. | 93 // Requests the renderer to move the selection extent to a new position. |
| 90 virtual void MoveRangeSelectionExtent(const gfx::Point& extent) {} | 94 virtual void MoveRangeSelectionExtent(const gfx::Point& extent) {} |
| 91 | 95 |
| 92 // Requests the renderer to select the region between two points in the | 96 // Requests the renderer to select the region between two points in the |
| 93 // currently focused frame. | 97 // currently focused frame. |
| 94 virtual void SelectRange(const gfx::Point& base, const gfx::Point& extent) {} | 98 virtual void SelectRange(const gfx::Point& base, const gfx::Point& extent) {} |
| 95 | 99 |
| 96 virtual RenderWidgetHostInputEventRouter* GetInputEventRouter(); | 100 virtual RenderWidgetHostInputEventRouter* GetInputEventRouter(); |
| 97 | 101 |
| 102 // Updates focus state in all RenderWidgets that live in a different process |
| 103 // than the main frame's RenderWidget. Such RenderWidgets will exist when |
| 104 // out-of-process iframes are enabled. |
| 105 virtual void SendFocusToCrossProcessRenderWidgets(bool is_focused) {} |
| 106 |
| 98 #if defined(OS_WIN) | 107 #if defined(OS_WIN) |
| 99 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 108 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
| 100 #endif | 109 #endif |
| 101 | 110 |
| 102 protected: | 111 protected: |
| 103 virtual ~RenderWidgetHostDelegate() {} | 112 virtual ~RenderWidgetHostDelegate() {} |
| 104 }; | 113 }; |
| 105 | 114 |
| 106 } // namespace content | 115 } // namespace content |
| 107 | 116 |
| 108 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 117 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| OLD | NEW |