| 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" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 // Get the root BrowserAccessibilityManager for this frame tree, | 77 // Get the root BrowserAccessibilityManager for this frame tree, |
| 78 // or create it if it doesn't exist. | 78 // or create it if it doesn't exist. |
| 79 virtual BrowserAccessibilityManager* | 79 virtual BrowserAccessibilityManager* |
| 80 GetOrCreateRootBrowserAccessibilityManager(); | 80 GetOrCreateRootBrowserAccessibilityManager(); |
| 81 | 81 |
| 82 // Send OS Cut/Copy/Paste actions to the focused frame. | 82 // Send OS Cut/Copy/Paste actions to the focused frame. |
| 83 virtual void Cut() = 0; | 83 virtual void Cut() = 0; |
| 84 virtual void Copy() = 0; | 84 virtual void Copy() = 0; |
| 85 virtual void Paste() = 0; | 85 virtual void Paste() = 0; |
| 86 virtual void SelectAll() = 0; |
| 86 | 87 |
| 87 // Requests the renderer to move the selection extent to a new position. | 88 // Requests the renderer to move the selection extent to a new position. |
| 88 virtual void MoveRangeSelectionExtent(const gfx::Point& extent) {} | 89 virtual void MoveRangeSelectionExtent(const gfx::Point& extent) {} |
| 89 | 90 |
| 90 // Requests the renderer to select the region between two points in the | 91 // Requests the renderer to select the region between two points in the |
| 91 // currently focused frame. | 92 // currently focused frame. |
| 92 virtual void SelectRange(const gfx::Point& base, const gfx::Point& extent) {} | 93 virtual void SelectRange(const gfx::Point& base, const gfx::Point& extent) {} |
| 93 | 94 |
| 94 #if defined(OS_WIN) | 95 #if defined(OS_WIN) |
| 95 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 96 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
| 96 #endif | 97 #endif |
| 97 | 98 |
| 98 protected: | 99 protected: |
| 99 virtual ~RenderWidgetHostDelegate() {} | 100 virtual ~RenderWidgetHostDelegate() {} |
| 100 }; | 101 }; |
| 101 | 102 |
| 102 } // namespace content | 103 } // namespace content |
| 103 | 104 |
| 104 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 105 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| OLD | NEW |