| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 struct WebMenuItem; | 34 struct WebMenuItem; |
| 35 struct WebPreferences; | 35 struct WebPreferences; |
| 36 | 36 |
| 37 namespace base { | 37 namespace base { |
| 38 class ListValue; | 38 class ListValue; |
| 39 } | 39 } |
| 40 | 40 |
| 41 namespace content { | 41 namespace content { |
| 42 class BrowserContext; | 42 class BrowserContext; |
| 43 struct FileChooserParams; | 43 struct FileChooserParams; |
| 44 struct Referrer; |
| 44 struct RendererPreferences; | 45 struct RendererPreferences; |
| 45 } | 46 } |
| 46 | 47 |
| 47 namespace gfx { | 48 namespace gfx { |
| 48 class Point; | 49 class Point; |
| 49 class Rect; | 50 class Rect; |
| 50 class Size; | 51 class Size; |
| 51 } | 52 } |
| 52 | 53 |
| 53 // | 54 // |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 // the document has finished parsing. | 266 // the document has finished parsing. |
| 266 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) {} | 267 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) {} |
| 267 | 268 |
| 268 // The onload handler in the RenderView's main frame has completed. | 269 // The onload handler in the RenderView's main frame has completed. |
| 269 virtual void DocumentOnLoadCompletedInMainFrame( | 270 virtual void DocumentOnLoadCompletedInMainFrame( |
| 270 RenderViewHost* render_view_host, | 271 RenderViewHost* render_view_host, |
| 271 int32 page_id) {} | 272 int32 page_id) {} |
| 272 | 273 |
| 273 // The page wants to open a URL with the specified disposition. | 274 // The page wants to open a URL with the specified disposition. |
| 274 virtual void RequestOpenURL(const GURL& url, | 275 virtual void RequestOpenURL(const GURL& url, |
| 275 const GURL& referrer, | 276 const content::Referrer& referrer, |
| 276 WindowOpenDisposition disposition, | 277 WindowOpenDisposition disposition, |
| 277 int64 source_frame_id) {} | 278 int64 source_frame_id) {} |
| 278 | 279 |
| 279 // A javascript message, confirmation or prompt should be shown. | 280 // A javascript message, confirmation or prompt should be shown. |
| 280 virtual void RunJavaScriptMessage(const RenderViewHost* rvh, | 281 virtual void RunJavaScriptMessage(const RenderViewHost* rvh, |
| 281 const string16& message, | 282 const string16& message, |
| 282 const string16& default_prompt, | 283 const string16& default_prompt, |
| 283 const GURL& frame_url, | 284 const GURL& frame_url, |
| 284 const int flags, | 285 const int flags, |
| 285 IPC::Message* reply_msg, | 286 IPC::Message* reply_msg, |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 virtual void RequestToLockMouse() {} | 381 virtual void RequestToLockMouse() {} |
| 381 | 382 |
| 382 // Notification that the view has lost the mouse lock. | 383 // Notification that the view has lost the mouse lock. |
| 383 virtual void LostMouseLock() {} | 384 virtual void LostMouseLock() {} |
| 384 | 385 |
| 385 protected: | 386 protected: |
| 386 virtual ~RenderViewHostDelegate() {} | 387 virtual ~RenderViewHostDelegate() {} |
| 387 }; | 388 }; |
| 388 | 389 |
| 389 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 390 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |