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> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/i18n/rtl.h" | 13 #include "base/i18n/rtl.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/process_util.h" | 15 #include "base/process_util.h" |
16 #include "base/string16.h" | 16 #include "base/string16.h" |
17 #include "base/values.h" | 17 #include "base/values.h" |
18 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
19 #include "content/public/common/view_types.h" | 19 #include "content/public/common/view_types.h" |
20 #include "content/public/common/window_container_type.h" | 20 #include "content/public/common/window_container_type.h" |
21 #include "ipc/ipc_channel.h" | 21 #include "ipc/ipc_channel.h" |
22 #include "net/base/load_states.h" | 22 #include "net/base/load_states.h" |
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
25 #include "webkit/glue/window_open_disposition.h" | 25 #include "webkit/glue/window_open_disposition.h" |
26 | 26 |
| 27 |
27 class BackgroundContents; | 28 class BackgroundContents; |
28 struct BookmarkNodeData; | |
29 class BookmarkNode; | 29 class BookmarkNode; |
30 struct ContextMenuParams; | |
31 class GURL; | 30 class GURL; |
32 struct NativeWebKeyboardEvent; | |
33 struct RendererPreferences; | |
34 class RenderProcessHost; | 31 class RenderProcessHost; |
35 class RenderViewHost; | 32 class RenderViewHost; |
36 class SkBitmap; | 33 class SkBitmap; |
37 class TabContents; | 34 class TabContents; |
| 35 class WebKeyboardEvent; |
| 36 struct BookmarkNodeData; |
| 37 struct ContextMenuParams; |
| 38 struct NativeWebKeyboardEvent; |
38 struct ViewHostMsg_CreateWindow_Params; | 39 struct ViewHostMsg_CreateWindow_Params; |
39 struct ViewHostMsg_FrameNavigate_Params; | 40 struct ViewHostMsg_FrameNavigate_Params; |
| 41 struct ViewHostMsg_RunFileChooser_Params; |
40 struct WebDropData; | 42 struct WebDropData; |
41 struct WebMenuItem; | 43 struct WebMenuItem; |
42 class WebKeyboardEvent; | |
43 struct WebPreferences; | 44 struct WebPreferences; |
44 struct ViewHostMsg_RunFileChooser_Params; | |
45 | 45 |
46 namespace content { | 46 namespace content { |
47 class BrowserContext; | 47 class BrowserContext; |
| 48 struct RendererPreferences; |
48 } | 49 } |
49 | 50 |
50 namespace gfx { | 51 namespace gfx { |
51 class Point; | 52 class Point; |
52 class Rect; | 53 class Rect; |
53 class Size; | 54 class Size; |
54 } | 55 } |
55 | 56 |
56 // | 57 // |
57 // RenderViewHostDelegate | 58 // RenderViewHostDelegate |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 const int flags, | 296 const int flags, |
296 IPC::Message* reply_msg, | 297 IPC::Message* reply_msg, |
297 bool* did_suppress_message) {} | 298 bool* did_suppress_message) {} |
298 | 299 |
299 virtual void RunBeforeUnloadConfirm(const RenderViewHost* rvh, | 300 virtual void RunBeforeUnloadConfirm(const RenderViewHost* rvh, |
300 const string16& message, | 301 const string16& message, |
301 IPC::Message* reply_msg) {} | 302 IPC::Message* reply_msg) {} |
302 | 303 |
303 // Return a dummy RendererPreferences object that will be used by the renderer | 304 // Return a dummy RendererPreferences object that will be used by the renderer |
304 // associated with the owning RenderViewHost. | 305 // associated with the owning RenderViewHost. |
305 virtual RendererPreferences GetRendererPrefs( | 306 virtual content::RendererPreferences GetRendererPrefs( |
306 content::BrowserContext* browser_context) const = 0; | 307 content::BrowserContext* browser_context) const = 0; |
307 | 308 |
308 // Returns a WebPreferences object that will be used by the renderer | 309 // Returns a WebPreferences object that will be used by the renderer |
309 // associated with the owning render view host. | 310 // associated with the owning render view host. |
310 virtual WebPreferences GetWebkitPrefs(); | 311 virtual WebPreferences GetWebkitPrefs(); |
311 | 312 |
312 // Notification the user has made a gesture while focus was on the | 313 // Notification the user has made a gesture while focus was on the |
313 // page. This is used to avoid uninitiated user downloads (aka carpet | 314 // page. This is used to avoid uninitiated user downloads (aka carpet |
314 // bombing), see DownloadRequestLimiter for details. | 315 // bombing), see DownloadRequestLimiter for details. |
315 virtual void OnUserGesture() {} | 316 virtual void OnUserGesture() {} |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 virtual void RequestToLockMouse() {} | 392 virtual void RequestToLockMouse() {} |
392 | 393 |
393 // Notification that the view has lost the mouse lock. | 394 // Notification that the view has lost the mouse lock. |
394 virtual void LostMouseLock() {} | 395 virtual void LostMouseLock() {} |
395 | 396 |
396 protected: | 397 protected: |
397 virtual ~RenderViewHostDelegate() {} | 398 virtual ~RenderViewHostDelegate() {} |
398 }; | 399 }; |
399 | 400 |
400 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 401 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |