| 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 content { | 22 namespace content { | 
| 23 | 23 | 
| 24 class BrowserAccessibilityManager; | 24 class BrowserAccessibilityManager; | 
| 25 class RenderWidgetHostImpl; | 25 class RenderWidgetHostImpl; | 
|  | 26 class RenderWidgetHostInputEventRouter; | 
| 26 struct NativeWebKeyboardEvent; | 27 struct NativeWebKeyboardEvent; | 
| 27 | 28 | 
| 28 // | 29 // | 
| 29 // RenderWidgetHostDelegate | 30 // RenderWidgetHostDelegate | 
| 30 // | 31 // | 
| 31 //  An interface implemented by an object interested in knowing about the state | 32 //  An interface implemented by an object interested in knowing about the state | 
| 32 //  of the RenderWidgetHost. | 33 //  of the RenderWidgetHost. | 
| 33 class CONTENT_EXPORT RenderWidgetHostDelegate { | 34 class CONTENT_EXPORT RenderWidgetHostDelegate { | 
| 34  public: | 35  public: | 
| 35   // The RenderWidgetHost is going to be deleted. | 36   // The RenderWidgetHost is going to be deleted. | 
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 85   virtual void Paste() = 0; | 86   virtual void Paste() = 0; | 
| 86   virtual void SelectAll() = 0; | 87   virtual void SelectAll() = 0; | 
| 87 | 88 | 
| 88   // Requests the renderer to move the selection extent to a new position. | 89   // Requests the renderer to move the selection extent to a new position. | 
| 89   virtual void MoveRangeSelectionExtent(const gfx::Point& extent) {} | 90   virtual void MoveRangeSelectionExtent(const gfx::Point& extent) {} | 
| 90 | 91 | 
| 91   // Requests the renderer to select the region between two points in the | 92   // Requests the renderer to select the region between two points in the | 
| 92   // currently focused frame. | 93   // currently focused frame. | 
| 93   virtual void SelectRange(const gfx::Point& base, const gfx::Point& extent) {} | 94   virtual void SelectRange(const gfx::Point& base, const gfx::Point& extent) {} | 
| 94 | 95 | 
|  | 96   virtual RenderWidgetHostInputEventRouter* GetInputEventRouter(); | 
|  | 97 | 
| 95 #if defined(OS_WIN) | 98 #if defined(OS_WIN) | 
| 96   virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 99   virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 
| 97 #endif | 100 #endif | 
| 98 | 101 | 
| 99  protected: | 102  protected: | 
| 100   virtual ~RenderWidgetHostDelegate() {} | 103   virtual ~RenderWidgetHostDelegate() {} | 
| 101 }; | 104 }; | 
| 102 | 105 | 
| 103 }  // namespace content | 106 }  // namespace content | 
| 104 | 107 | 
| 105 #endif  // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 108 #endif  // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 
| OLD | NEW | 
|---|