OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/gfx/rect.h" | 13 #include "base/gfx/rect.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "chrome/common/native_web_keyboard_event.h" | 15 #include "chrome/common/native_web_keyboard_event.h" |
16 #include "net/base/load_states.h" | 16 #include "net/base/load_states.h" |
17 #include "webkit/glue/feed.h" | 17 #include "webkit/glue/feed.h" |
18 #include "webkit/glue/password_form.h" | 18 #include "webkit/glue/password_form.h" |
19 #include "webkit/glue/webpreferences.h" | 19 #include "webkit/glue/webpreferences.h" |
20 #include "webkit/glue/window_open_disposition.h" | 20 #include "webkit/glue/window_open_disposition.h" |
21 | 21 |
| 22 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
| 23 |
22 class AutofillForm; | 24 class AutofillForm; |
| 25 class ExtensionFunctionDispatcher; |
23 class NavigationEntry; | 26 class NavigationEntry; |
24 class Profile; | 27 class Profile; |
25 class RenderProcessHost; | 28 class RenderProcessHost; |
26 class RenderViewHost; | 29 class RenderViewHost; |
27 class SkBitmap; | 30 class SkBitmap; |
28 class WebContents; | 31 class WebContents; |
29 class WebKeyboardEvent; | 32 class WebKeyboardEvent; |
30 struct ThumbnailScore; | 33 struct ThumbnailScore; |
31 struct ContextMenuParams; | 34 struct ContextMenuParams; |
32 struct ViewHostMsg_DidPrintPage_Params; | 35 struct ViewHostMsg_DidPrintPage_Params; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 int32 status) = 0; | 143 int32 status) = 0; |
141 }; | 144 }; |
142 | 145 |
143 // Returns the current delegate associated with a feature. May be NULL. | 146 // Returns the current delegate associated with a feature. May be NULL. |
144 virtual View* GetViewDelegate() const { return NULL; } | 147 virtual View* GetViewDelegate() const { return NULL; } |
145 virtual Save* GetSaveDelegate() const { return NULL; } | 148 virtual Save* GetSaveDelegate() const { return NULL; } |
146 | 149 |
147 // Retrieves the profile to be used. | 150 // Retrieves the profile to be used. |
148 virtual Profile* GetProfile() const = 0; | 151 virtual Profile* GetProfile() const = 0; |
149 | 152 |
| 153 // Create a new browser window to be sized, shown and contents managed |
| 154 // by the caller. |
| 155 virtual ExtensionFunctionDispatcher *CreateExtensionFunctionDispatcher( |
| 156 RenderViewHost* render_view_host, |
| 157 const std::string& extension_id) { |
| 158 return NULL; |
| 159 } |
| 160 |
150 // Return this object cast to a WebContents, if it is one. | 161 // Return this object cast to a WebContents, if it is one. |
151 virtual WebContents* GetAsWebContents() { return NULL; } | 162 virtual WebContents* GetAsWebContents() { return NULL; } |
152 | 163 |
153 // The RenderView is being constructed (message sent to the renderer process | 164 // The RenderView is being constructed (message sent to the renderer process |
154 // to construct a RenderView). Now is a good time to send other setup events | 165 // to construct a RenderView). Now is a good time to send other setup events |
155 // to the RenderView. This precedes any other commands to the RenderView. | 166 // to the RenderView. This precedes any other commands to the RenderView. |
156 virtual void RenderViewCreated(RenderViewHost* render_view_host) { } | 167 virtual void RenderViewCreated(RenderViewHost* render_view_host) { } |
157 | 168 |
158 // The RenderView has been constructed. | 169 // The RenderView has been constructed. |
159 virtual void RenderViewReady(RenderViewHost* render_view_host) { } | 170 virtual void RenderViewReady(RenderViewHost* render_view_host) { } |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 | 432 |
422 // A find operation in the current page completed. | 433 // A find operation in the current page completed. |
423 virtual void OnFindReply(int request_id, | 434 virtual void OnFindReply(int request_id, |
424 int number_of_matches, | 435 int number_of_matches, |
425 const gfx::Rect& selection_rect, | 436 const gfx::Rect& selection_rect, |
426 int active_match_ordinal, | 437 int active_match_ordinal, |
427 bool final_update) { } | 438 bool final_update) { } |
428 }; | 439 }; |
429 | 440 |
430 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 441 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |