OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 class DeviceOrientationDispatcher; | 56 class DeviceOrientationDispatcher; |
57 class DevToolsAgent; | 57 class DevToolsAgent; |
58 class ExternalPopupMenu; | 58 class ExternalPopupMenu; |
59 class FilePath; | 59 class FilePath; |
60 class GeolocationDispatcher; | 60 class GeolocationDispatcher; |
61 class GURL; | 61 class GURL; |
62 class LoadProgressTracker; | 62 class LoadProgressTracker; |
63 class MediaStreamImpl; | 63 class MediaStreamImpl; |
64 class NavigationState; | 64 class NavigationState; |
65 class NotificationProvider; | 65 class NotificationProvider; |
66 class P2PSocketDispatcher; | |
67 class PepperDeviceTest; | 66 class PepperDeviceTest; |
68 class PrintWebViewHelper; | 67 class PrintWebViewHelper; |
69 class RenderViewObserver; | 68 class RenderViewObserver; |
70 class RenderViewVisitor; | 69 class RenderViewVisitor; |
71 class RenderWidgetFullscreenPepper; | 70 class RenderWidgetFullscreenPepper; |
72 class SkBitmap; | 71 class SkBitmap; |
73 class SpeechInputDispatcher; | 72 class SpeechInputDispatcher; |
74 class WebPluginDelegateProxy; | 73 class WebPluginDelegateProxy; |
75 class WebUIBindings; | 74 class WebUIBindings; |
76 struct ContextMenuMediaParams; | 75 struct ContextMenuMediaParams; |
77 struct PP_Flash_NetAddress; | 76 struct PP_Flash_NetAddress; |
78 struct ViewHostMsg_RunFileChooser_Params; | 77 struct ViewHostMsg_RunFileChooser_Params; |
79 struct ViewMsg_SwapOut_Params; | 78 struct ViewMsg_SwapOut_Params; |
80 struct ViewMsg_Navigate_Params; | 79 struct ViewMsg_Navigate_Params; |
81 struct ViewMsg_StopFinding_Params; | 80 struct ViewMsg_StopFinding_Params; |
82 struct WebDropData; | 81 struct WebDropData; |
83 | 82 |
84 namespace base { | 83 namespace base { |
85 class WaitableEvent; | 84 class WaitableEvent; |
86 } | 85 } // namespace base |
| 86 |
| 87 namespace content { |
| 88 class P2PSocketDispatcher; |
| 89 } // namespace content |
87 | 90 |
88 namespace chrome { | 91 namespace chrome { |
89 class ChromeContentRendererClient; | 92 class ChromeContentRendererClient; |
90 } | 93 } // namespace chrome |
91 | 94 |
92 namespace gfx { | 95 namespace gfx { |
93 class Point; | 96 class Point; |
94 class Rect; | 97 class Rect; |
95 } | 98 } // namespace gfx |
96 | 99 |
97 namespace webkit { | 100 namespace webkit { |
98 | 101 |
99 namespace npapi { | 102 namespace npapi { |
100 class PluginGroup; | 103 class PluginGroup; |
101 } // namespace npapi | 104 } // namespace npapi |
102 | 105 |
103 namespace ppapi { | 106 namespace ppapi { |
104 class PluginInstance; | 107 class PluginInstance; |
105 class PluginModule; | 108 class PluginModule; |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 // false if the scrollbars should be hidden. | 233 // false if the scrollbars should be hidden. |
231 bool should_display_scrollbars(int width, int height) const { | 234 bool should_display_scrollbars(int width, int height) const { |
232 return (!send_preferred_size_changes_ || | 235 return (!send_preferred_size_changes_ || |
233 (disable_scrollbars_size_limit_.width() <= width || | 236 (disable_scrollbars_size_limit_.width() <= width || |
234 disable_scrollbars_size_limit_.height() <= height)); | 237 disable_scrollbars_size_limit_.height() <= height)); |
235 } | 238 } |
236 | 239 |
237 const WebKit::WebNode& context_menu_node() { return context_menu_node_; } | 240 const WebKit::WebNode& context_menu_node() { return context_menu_node_; } |
238 | 241 |
239 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. | 242 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. |
240 P2PSocketDispatcher* p2p_socket_dispatcher() { | 243 content::P2PSocketDispatcher* p2p_socket_dispatcher() { |
241 return p2p_socket_dispatcher_; | 244 return p2p_socket_dispatcher_; |
242 } | 245 } |
243 | 246 |
244 // Functions to add and remove observers for this object. | 247 // Functions to add and remove observers for this object. |
245 void AddObserver(RenderViewObserver* observer); | 248 void AddObserver(RenderViewObserver* observer); |
246 void RemoveObserver(RenderViewObserver* observer); | 249 void RemoveObserver(RenderViewObserver* observer); |
247 | 250 |
248 // Evaluates a string of JavaScript in a particular frame. | 251 // Evaluates a string of JavaScript in a particular frame. |
249 void EvaluateScript(const string16& frame_xpath, | 252 void EvaluateScript(const string16& frame_xpath, |
250 const string16& jscript, | 253 const string16& jscript, |
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1163 | 1166 |
1164 // Collect renderer accessibility notifications until they are ready to be | 1167 // Collect renderer accessibility notifications until they are ready to be |
1165 // sent to the browser. | 1168 // sent to the browser. |
1166 std::vector<RendererAccessibilityNotification> | 1169 std::vector<RendererAccessibilityNotification> |
1167 pending_accessibility_notifications_; | 1170 pending_accessibility_notifications_; |
1168 | 1171 |
1169 // Set if we are waiting for a accessibility notification ack. | 1172 // Set if we are waiting for a accessibility notification ack. |
1170 bool accessibility_ack_pending_; | 1173 bool accessibility_ack_pending_; |
1171 | 1174 |
1172 // Dispatches all P2P socket used by the renderer. | 1175 // Dispatches all P2P socket used by the renderer. |
1173 P2PSocketDispatcher* p2p_socket_dispatcher_; | 1176 content::P2PSocketDispatcher* p2p_socket_dispatcher_; |
1174 | 1177 |
1175 DevToolsAgent* devtools_agent_; | 1178 DevToolsAgent* devtools_agent_; |
1176 | 1179 |
1177 // Misc ---------------------------------------------------------------------- | 1180 // Misc ---------------------------------------------------------------------- |
1178 | 1181 |
1179 // The current and pending file chooser completion objects. If the queue is | 1182 // The current and pending file chooser completion objects. If the queue is |
1180 // nonempty, the first item represents the currently running file chooser | 1183 // nonempty, the first item represents the currently running file chooser |
1181 // callback, and the remaining elements are the other file chooser completion | 1184 // callback, and the remaining elements are the other file chooser completion |
1182 // still waiting to be run (in order). | 1185 // still waiting to be run (in order). |
1183 struct PendingFileChooser; | 1186 struct PendingFileChooser; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1238 // bunch of stuff, you should probably create a helper class and put your | 1241 // bunch of stuff, you should probably create a helper class and put your |
1239 // data and methods on that to avoid bloating RenderView more. You can use | 1242 // data and methods on that to avoid bloating RenderView more. You can use |
1240 // the Observer interface to filter IPC messages and receive frame change | 1243 // the Observer interface to filter IPC messages and receive frame change |
1241 // notifications. | 1244 // notifications. |
1242 // --------------------------------------------------------------------------- | 1245 // --------------------------------------------------------------------------- |
1243 | 1246 |
1244 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1247 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1245 }; | 1248 }; |
1246 | 1249 |
1247 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1250 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |