| 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_RENDER_WIDGET_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" |
| 8 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 9 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "content/public/common/widget_visible_state.h" |
| 10 #include "ui/gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
| 11 | 13 |
| 12 namespace blink { | 14 namespace blink { |
| 13 class WebMouseWheelEvent; | 15 class WebMouseWheelEvent; |
| 14 class WebGestureEvent; | 16 class WebGestureEvent; |
| 15 } | 17 } |
| 16 | 18 |
| 17 namespace content { | 19 namespace content { |
| 18 | 20 |
| 19 class RenderWidgetHostImpl; | 21 class RenderWidgetHostImpl; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 virtual bool HandleGestureEvent(const blink::WebGestureEvent& event); | 59 virtual bool HandleGestureEvent(const blink::WebGestureEvent& event); |
| 58 | 60 |
| 59 // Notifies that screen rects were sent to renderer process. | 61 // Notifies that screen rects were sent to renderer process. |
| 60 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} | 62 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} |
| 61 | 63 |
| 62 #if defined(OS_WIN) | 64 #if defined(OS_WIN) |
| 63 // Returns the widget's parent's NativeViewAccessible. | 65 // Returns the widget's parent's NativeViewAccessible. |
| 64 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 66 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
| 65 #endif | 67 #endif |
| 66 | 68 |
| 69 // TODO: need a better name. |
| 70 virtual void DispatchMessageWithSwapFrame(const IPC::Message&) {} |
| 71 |
| 72 virtual void WidgetVisibleStateChanged( |
| 73 int32 page_id, |
| 74 WidgetVisibleState widget_visible_state) {} |
| 75 |
| 67 protected: | 76 protected: |
| 68 virtual ~RenderWidgetHostDelegate() {} | 77 virtual ~RenderWidgetHostDelegate() {} |
| 69 }; | 78 }; |
| 70 | 79 |
| 71 } // namespace content | 80 } // namespace content |
| 72 | 81 |
| 73 #endif // CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ | 82 #endif // CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ |
| OLD | NEW |