| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 class Point; | 24 class Point; |
| 25 class Rect; | 25 class Rect; |
| 26 class Size; | 26 class Size; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace content { | 29 namespace content { |
| 30 | 30 |
| 31 class BrowserAccessibilityManager; | 31 class BrowserAccessibilityManager; |
| 32 class RenderWidgetHostImpl; | 32 class RenderWidgetHostImpl; |
| 33 class RenderWidgetHostInputEventRouter; | 33 class RenderWidgetHostInputEventRouter; |
| 34 class TextInputManager; |
| 34 struct NativeWebKeyboardEvent; | 35 struct NativeWebKeyboardEvent; |
| 35 | 36 |
| 36 // | 37 // |
| 37 // RenderWidgetHostDelegate | 38 // RenderWidgetHostDelegate |
| 38 // | 39 // |
| 39 // An interface implemented by an object interested in knowing about the state | 40 // An interface implemented by an object interested in knowing about the state |
| 40 // of the RenderWidgetHost. | 41 // of the RenderWidgetHost. |
| 41 class CONTENT_EXPORT RenderWidgetHostDelegate { | 42 class CONTENT_EXPORT RenderWidgetHostDelegate { |
| 42 public: | 43 public: |
| 43 // The RenderWidgetHost has just been created. | 44 // The RenderWidgetHost has just been created. |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 virtual void OnRenderFrameProxyVisibilityChanged(bool visible) {} | 179 virtual void OnRenderFrameProxyVisibilityChanged(bool visible) {} |
| 179 | 180 |
| 180 // Update the renderer's cache of the screen rect of the view and window. | 181 // Update the renderer's cache of the screen rect of the view and window. |
| 181 virtual void SendScreenRects() {} | 182 virtual void SendScreenRects() {} |
| 182 | 183 |
| 183 // Notifies that the main frame in the renderer has performed the first paint | 184 // Notifies that the main frame in the renderer has performed the first paint |
| 184 // after a navigation. | 185 // after a navigation. |
| 185 virtual void OnFirstPaintAfterLoad(RenderWidgetHostImpl* render_widget_host) { | 186 virtual void OnFirstPaintAfterLoad(RenderWidgetHostImpl* render_widget_host) { |
| 186 } | 187 } |
| 187 | 188 |
| 189 // Returns the TextInputManager tracking text input state. |
| 190 virtual TextInputManager* GetTextInputManager(); |
| 191 |
| 188 protected: | 192 protected: |
| 189 virtual ~RenderWidgetHostDelegate() {} | 193 virtual ~RenderWidgetHostDelegate() {} |
| 190 }; | 194 }; |
| 191 | 195 |
| 192 } // namespace content | 196 } // namespace content |
| 193 | 197 |
| 194 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 198 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| OLD | NEW |