| 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> |
| 11 | 11 |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
| 14 #include "content/common/drag_event_source_info.h" |
| 14 #include "content/public/browser/renderer_unresponsive_type.h" | 15 #include "content/public/browser/renderer_unresponsive_type.h" |
| 16 #include "content/public/common/drop_data.h" |
| 15 #include "third_party/WebKit/public/platform/WebDisplayMode.h" | 17 #include "third_party/WebKit/public/platform/WebDisplayMode.h" |
| 18 #include "third_party/WebKit/public/platform/WebDragOperation.h" |
| 16 #include "third_party/WebKit/public/web/WebInputEvent.h" | 19 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 17 #include "ui/gfx/native_widget_types.h" | 20 #include "ui/gfx/native_widget_types.h" |
| 18 | 21 |
| 19 namespace blink { | 22 namespace blink { |
| 20 class WebMouseWheelEvent; | 23 class WebMouseWheelEvent; |
| 21 class WebGestureEvent; | 24 class WebGestureEvent; |
| 22 } | 25 } |
| 23 | 26 |
| 24 namespace gfx { | 27 namespace gfx { |
| 25 class Point; | 28 class Point; |
| 26 class Rect; | 29 class Rect; |
| 27 class Size; | 30 class Size; |
| 28 } | 31 } |
| 29 | 32 |
| 30 namespace content { | 33 namespace content { |
| 31 | 34 |
| 32 class BrowserAccessibilityManager; | 35 class BrowserAccessibilityManager; |
| 33 class RenderWidgetHostImpl; | 36 class RenderWidgetHostImpl; |
| 34 class RenderWidgetHostInputEventRouter; | 37 class RenderWidgetHostInputEventRouter; |
| 38 class RenderViewHostDelegateView; |
| 35 class TextInputManager; | 39 class TextInputManager; |
| 36 struct ScreenInfo; | 40 struct ScreenInfo; |
| 37 struct NativeWebKeyboardEvent; | 41 struct NativeWebKeyboardEvent; |
| 38 | 42 |
| 39 // | 43 // |
| 40 // RenderWidgetHostDelegate | 44 // RenderWidgetHostDelegate |
| 41 // | 45 // |
| 42 // An interface implemented by an object interested in knowing about the state | 46 // An interface implemented by an object interested in knowing about the state |
| 43 // of the RenderWidgetHost. | 47 // of the RenderWidgetHost. |
| 44 class CONTENT_EXPORT RenderWidgetHostDelegate { | 48 class CONTENT_EXPORT RenderWidgetHostDelegate { |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 | 201 |
| 198 // Returns the TextInputManager tracking text input state. | 202 // Returns the TextInputManager tracking text input state. |
| 199 virtual TextInputManager* GetTextInputManager(); | 203 virtual TextInputManager* GetTextInputManager(); |
| 200 | 204 |
| 201 // Returns true if this RenderWidgetHost should remain hidden. This is used by | 205 // Returns true if this RenderWidgetHost should remain hidden. This is used by |
| 202 // the RenderWidgetHost to ask the delegate if it can be shown in the event of | 206 // the RenderWidgetHost to ask the delegate if it can be shown in the event of |
| 203 // something other than the WebContents attempting to enable visibility of | 207 // something other than the WebContents attempting to enable visibility of |
| 204 // this RenderWidgetHost. | 208 // this RenderWidgetHost. |
| 205 virtual bool IsHidden(); | 209 virtual bool IsHidden(); |
| 206 | 210 |
| 211 // Returns the associated RenderViewHostDelegateView*, if possible. |
| 212 virtual RenderViewHostDelegateView* GetDelegateView(); |
| 213 |
| 207 protected: | 214 protected: |
| 208 virtual ~RenderWidgetHostDelegate() {} | 215 virtual ~RenderWidgetHostDelegate() {} |
| 209 }; | 216 }; |
| 210 | 217 |
| 211 } // namespace content | 218 } // namespace content |
| 212 | 219 |
| 213 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 220 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| OLD | NEW |