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 namespace ppapi { | 15 namespace ppapi { |
16 namespace host { | 16 namespace host { |
17 class PpapiHost; | 17 class PpapiHost; |
18 } | 18 } |
19 } | 19 } |
20 | 20 |
21 namespace WebKit { | 21 namespace WebKit { |
22 struct WebContextMenuData; | |
jam
2012/10/29 15:32:47
nit: struct after class per style guide, so this s
| |
22 class WebDataSource; | 23 class WebDataSource; |
23 class WebFrame; | 24 class WebFrame; |
24 class WebFormElement; | 25 class WebFormElement; |
25 class WebMediaPlayerClient; | 26 class WebMediaPlayerClient; |
26 class WebMouseEvent; | 27 class WebMouseEvent; |
27 class WebNode; | 28 class WebNode; |
28 class WebTouchEvent; | 29 class WebTouchEvent; |
29 class WebURL; | 30 class WebURL; |
30 struct WebURLError; | 31 struct WebURLError; |
31 } | 32 } |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
75 const WebKit::WebFormElement& form) {} | 76 const WebKit::WebFormElement& form) {} |
76 virtual void DidCreateDataSource(WebKit::WebFrame* frame, | 77 virtual void DidCreateDataSource(WebKit::WebFrame* frame, |
77 WebKit::WebDataSource* ds) {} | 78 WebKit::WebDataSource* ds) {} |
78 virtual void PrintPage(WebKit::WebFrame* frame, bool user_initiated) {} | 79 virtual void PrintPage(WebKit::WebFrame* frame, bool user_initiated) {} |
79 virtual void FocusedNodeChanged(const WebKit::WebNode& node) {} | 80 virtual void FocusedNodeChanged(const WebKit::WebNode& node) {} |
80 virtual void WillCreateMediaPlayer(WebKit::WebFrame* frame, | 81 virtual void WillCreateMediaPlayer(WebKit::WebFrame* frame, |
81 WebKit::WebMediaPlayerClient* client) {} | 82 WebKit::WebMediaPlayerClient* client) {} |
82 virtual void ZoomLevelChanged() {}; | 83 virtual void ZoomLevelChanged() {}; |
83 virtual void DidChangeScrollOffset(WebKit::WebFrame* frame) {} | 84 virtual void DidChangeScrollOffset(WebKit::WebFrame* frame) {} |
84 virtual void DraggableRegionsChanged(WebKit::WebFrame* frame) {} | 85 virtual void DraggableRegionsChanged(WebKit::WebFrame* frame) {} |
86 virtual void DidRequestShowContextMenu( | |
87 WebKit::WebFrame* frame, | |
88 const WebKit::WebContextMenuData& data) {} | |
85 | 89 |
86 // These match the RenderView methods. | 90 // These match the RenderView methods. |
87 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} | 91 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} |
88 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} | 92 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} |
89 virtual void DidCreatePepperPlugin(RendererPpapiHost* host) {} | 93 virtual void DidCreatePepperPlugin(RendererPpapiHost* host) {} |
90 | 94 |
91 // These match incoming IPCs. | 95 // These match incoming IPCs. |
92 virtual void Navigate(const GURL& url) {} | 96 virtual void Navigate(const GURL& url) {} |
93 virtual void ClosePage() {} | 97 virtual void ClosePage() {} |
94 | 98 |
(...skipping 20 matching lines...) Expand all Loading... | |
115 RenderView* render_view_; | 119 RenderView* render_view_; |
116 // The routing ID of the associated RenderView. | 120 // The routing ID of the associated RenderView. |
117 int routing_id_; | 121 int routing_id_; |
118 | 122 |
119 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); | 123 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); |
120 }; | 124 }; |
121 | 125 |
122 } // namespace content | 126 } // namespace content |
123 | 127 |
124 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 128 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |