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_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 int32 page_id) {} | 160 int32 page_id) {} |
161 | 161 |
162 // The page wants to close the active view in this tab. | 162 // The page wants to close the active view in this tab. |
163 virtual void RouteCloseEvent(RenderViewHost* rvh) {} | 163 virtual void RouteCloseEvent(RenderViewHost* rvh) {} |
164 | 164 |
165 // The page wants to post a message to the active view in this tab. | 165 // The page wants to post a message to the active view in this tab. |
166 virtual void RouteMessageEvent( | 166 virtual void RouteMessageEvent( |
167 RenderViewHost* rvh, | 167 RenderViewHost* rvh, |
168 const ViewMsg_PostMessage_Params& params) {} | 168 const ViewMsg_PostMessage_Params& params) {} |
169 | 169 |
170 // A javascript message, confirmation or prompt should be shown. | 170 // A JavaScript message, confirmation or prompt should be shown. |
171 virtual void RunJavaScriptMessage(RenderViewHost* rvh, | 171 virtual void RunJavaScriptMessageOBSOLETE( |
172 const base::string16& message, | 172 RenderViewHost* rvh, |
173 const base::string16& default_prompt, | 173 const base::string16& message, |
174 const GURL& frame_url, | 174 const base::string16& default_prompt, |
175 JavaScriptMessageType type, | 175 const GURL& frame_url, |
176 IPC::Message* reply_msg, | 176 JavaScriptMessageType type, |
177 bool* did_suppress_message) {} | 177 IPC::Message* reply_msg, |
| 178 bool* did_suppress_message) {} |
178 | 179 |
179 virtual void RunBeforeUnloadConfirm(RenderViewHost* rvh, | 180 virtual void RunBeforeUnloadConfirmOBSOLETE(RenderViewHost* rvh, |
180 const base::string16& message, | 181 const base::string16& message, |
181 bool is_reload, | 182 bool is_reload, |
182 IPC::Message* reply_msg) {} | 183 IPC::Message* reply_msg) {} |
183 | 184 |
184 // Return a dummy RendererPreferences object that will be used by the renderer | 185 // Return a dummy RendererPreferences object that will be used by the renderer |
185 // associated with the owning RenderViewHost. | 186 // associated with the owning RenderViewHost. |
186 virtual RendererPreferences GetRendererPrefs( | 187 virtual RendererPreferences GetRendererPrefs( |
187 BrowserContext* browser_context) const = 0; | 188 BrowserContext* browser_context) const = 0; |
188 | 189 |
189 // Returns a WebPreferences object that will be used by the renderer | 190 // Returns a WebPreferences object that will be used by the renderer |
190 // associated with the owning render view host. | 191 // associated with the owning render view host. |
191 virtual WebPreferences GetWebkitPrefs(); | 192 virtual WebPreferences GetWebkitPrefs(); |
192 | 193 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 virtual void AccessibilityEventReceived( | 335 virtual void AccessibilityEventReceived( |
335 const std::vector<AXEventNotificationDetails>& details) {} | 336 const std::vector<AXEventNotificationDetails>& details) {} |
336 | 337 |
337 protected: | 338 protected: |
338 virtual ~RenderViewHostDelegate() {} | 339 virtual ~RenderViewHostDelegate() {} |
339 }; | 340 }; |
340 | 341 |
341 } // namespace content | 342 } // namespace content |
342 | 343 |
343 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 344 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |