| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // Requests the renderer to select the region between two points in the | 98 // Requests the renderer to select the region between two points in the |
| 99 // currently focused frame. | 99 // currently focused frame. |
| 100 virtual void SelectRange(const gfx::Point& base, const gfx::Point& extent) {} | 100 virtual void SelectRange(const gfx::Point& base, const gfx::Point& extent) {} |
| 101 | 101 |
| 102 virtual RenderWidgetHostInputEventRouter* GetInputEventRouter(); | 102 virtual RenderWidgetHostInputEventRouter* GetInputEventRouter(); |
| 103 | 103 |
| 104 // Send page-level focus state to all SiteInstances involved in rendering the | 104 // Send page-level focus state to all SiteInstances involved in rendering the |
| 105 // current FrameTree, not including the main frame's SiteInstance. | 105 // current FrameTree, not including the main frame's SiteInstance. |
| 106 virtual void ReplicatePageFocus(bool is_focused) {} | 106 virtual void ReplicatePageFocus(bool is_focused) {} |
| 107 | 107 |
| 108 // Returns true if this delegate corresponds to a guest WebContents and the |
| 109 // change in visibility is forwarded to all RenderWidgetHostViews. |
| 110 virtual bool DidForwardVisibilityChangeToGuest(bool visible); |
| 111 |
| 108 #if defined(OS_WIN) | 112 #if defined(OS_WIN) |
| 109 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 113 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
| 110 #endif | 114 #endif |
| 111 | 115 |
| 112 protected: | 116 protected: |
| 113 virtual ~RenderWidgetHostDelegate() {} | 117 virtual ~RenderWidgetHostDelegate() {} |
| 114 }; | 118 }; |
| 115 | 119 |
| 116 } // namespace content | 120 } // namespace content |
| 117 | 121 |
| 118 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 122 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| OLD | NEW |