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_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "ipc/ipc_listener.h" | 11 #include "ipc/ipc_listener.h" |
12 #include "ipc/ipc_sender.h" | 12 #include "ipc/ipc_sender.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h" |
14 | 14 |
15 class RenderViewImpl; | 15 class RenderViewImpl; |
16 | 16 |
| 17 namespace ppapi { |
| 18 namespace host { |
| 19 class PpapiHost; |
| 20 } |
| 21 } |
| 22 |
17 namespace WebKit { | 23 namespace WebKit { |
18 class WebDataSource; | 24 class WebDataSource; |
19 class WebFrame; | 25 class WebFrame; |
20 class WebFormElement; | 26 class WebFormElement; |
21 class WebMediaPlayerClient; | 27 class WebMediaPlayerClient; |
22 class WebMouseEvent; | 28 class WebMouseEvent; |
23 class WebNode; | 29 class WebNode; |
24 class WebTouchEvent; | 30 class WebTouchEvent; |
25 class WebURL; | 31 class WebURL; |
26 struct WebURLError; | 32 struct WebURLError; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 virtual void PrintPage(WebKit::WebFrame* frame) {} | 76 virtual void PrintPage(WebKit::WebFrame* frame) {} |
71 virtual void FocusedNodeChanged(const WebKit::WebNode& node) {} | 77 virtual void FocusedNodeChanged(const WebKit::WebNode& node) {} |
72 virtual void WillCreateMediaPlayer(WebKit::WebFrame* frame, | 78 virtual void WillCreateMediaPlayer(WebKit::WebFrame* frame, |
73 WebKit::WebMediaPlayerClient* client) {} | 79 WebKit::WebMediaPlayerClient* client) {} |
74 virtual void ZoomLevelChanged() {}; | 80 virtual void ZoomLevelChanged() {}; |
75 virtual void DidChangeScrollOffset(WebKit::WebFrame* frame) {} | 81 virtual void DidChangeScrollOffset(WebKit::WebFrame* frame) {} |
76 | 82 |
77 // These match the RenderView methods. | 83 // These match the RenderView methods. |
78 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} | 84 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} |
79 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} | 85 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} |
| 86 virtual void DidCreatePepperPlugin(ppapi::host::PpapiHost* host) {} |
80 | 87 |
81 // These match incoming IPCs. | 88 // These match incoming IPCs. |
82 virtual void ContextMenuAction(unsigned id) {} | 89 virtual void ContextMenuAction(unsigned id) {} |
83 virtual void Navigate(const GURL& url) {} | 90 virtual void Navigate(const GURL& url) {} |
84 virtual void ClosePage() {} | 91 virtual void ClosePage() {} |
85 | 92 |
86 // IPC::Listener implementation. | 93 // IPC::Listener implementation. |
87 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 94 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
88 | 95 |
89 protected: | 96 protected: |
(...skipping 16 matching lines...) Expand all Loading... |
106 RenderView* render_view_; | 113 RenderView* render_view_; |
107 // The routing ID of the associated RenderView. | 114 // The routing ID of the associated RenderView. |
108 int routing_id_; | 115 int routing_id_; |
109 | 116 |
110 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); | 117 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); |
111 }; | 118 }; |
112 | 119 |
113 } // namespace content | 120 } // namespace content |
114 | 121 |
115 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 122 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |