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" | |
15 #include "base/process_util.h" | 14 #include "base/process_util.h" |
16 #include "base/string16.h" | 15 #include "base/string16.h" |
17 #include "base/values.h" | |
18 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
19 #include "content/public/common/view_type.h" | 17 #include "content/public/common/view_type.h" |
20 #include "content/public/common/window_container_type.h" | |
21 #include "ipc/ipc_channel.h" | 18 #include "ipc/ipc_channel.h" |
22 #include "net/base/load_states.h" | 19 #include "net/base/load_states.h" |
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
25 #include "webkit/glue/window_open_disposition.h" | 22 #include "webkit/glue/window_open_disposition.h" |
26 | 23 |
27 class GURL; | 24 class GURL; |
28 class RenderViewHost; | 25 class RenderViewHost; |
29 class SkBitmap; | 26 class SkBitmap; |
30 class TabContents; | 27 class TabContents; |
31 class WebKeyboardEvent; | 28 class WebKeyboardEvent; |
32 struct ContextMenuParams; | 29 struct ContextMenuParams; |
33 struct NativeWebKeyboardEvent; | 30 struct NativeWebKeyboardEvent; |
34 struct ViewHostMsg_CreateWindow_Params; | 31 struct ViewHostMsg_CreateWindow_Params; |
35 struct ViewHostMsg_FrameNavigate_Params; | 32 struct ViewHostMsg_FrameNavigate_Params; |
36 struct WebDropData; | 33 struct WebDropData; |
37 struct WebMenuItem; | 34 struct WebMenuItem; |
38 struct WebPreferences; | 35 struct WebPreferences; |
39 | 36 |
37 namespace base { | |
38 class ListValue; | |
39 } | |
40 | |
40 namespace content { | 41 namespace content { |
41 class BrowserContext; | 42 class BrowserContext; |
42 struct FileChooserParams; | 43 struct FileChooserParams; |
43 struct RendererPreferences; | 44 struct RendererPreferences; |
44 } | 45 } |
45 | 46 |
46 namespace gfx { | 47 namespace gfx { |
47 class Point; | 48 class Point; |
48 class Rect; | 49 class Rect; |
49 class Size; | 50 class Size; |
(...skipping 22 matching lines...) Expand all Loading... | |
72 // shown yet. That should happen in response to ShowCreatedWindow. | 73 // shown yet. That should happen in response to ShowCreatedWindow. |
73 // |params.window_container_type| describes the type of RenderViewHost | 74 // |params.window_container_type| describes the type of RenderViewHost |
74 // container that is requested -- in particular, the window.open call may | 75 // container that is requested -- in particular, the window.open call may |
75 // have specified 'background' and 'persistent' in the feature string. | 76 // have specified 'background' and 'persistent' in the feature string. |
76 // | 77 // |
77 // The passed |params.frame_name| parameter is the name parameter that was | 78 // The passed |params.frame_name| parameter is the name parameter that was |
78 // passed to window.open(), and will be empty if none was passed. | 79 // passed to window.open(), and will be empty if none was passed. |
79 // | 80 // |
80 // Note: this is not called "CreateWindow" because that will clash with | 81 // Note: this is not called "CreateWindow" because that will clash with |
81 // the Windows function which is actually a #define. | 82 // the Windows function which is actually a #define. |
82 // | |
83 // NOTE: this takes ownership of @modal_dialog_event | |
Lei Zhang
2011/12/01 18:06:57
Apparently this comment has been invalid for 2 yea
Avi (use Gerrit)
2011/12/01 20:10:14
haha
| |
84 virtual void CreateNewWindow( | 83 virtual void CreateNewWindow( |
85 int route_id, | 84 int route_id, |
86 const ViewHostMsg_CreateWindow_Params& params) = 0; | 85 const ViewHostMsg_CreateWindow_Params& params) = 0; |
87 | 86 |
88 // The page is trying to open a new widget (e.g. a select popup). The | 87 // The page is trying to open a new widget (e.g. a select popup). The |
89 // widget should be created associated with the given route, but it should | 88 // widget should be created associated with the given route, but it should |
90 // not be shown yet. That should happen in response to ShowCreatedWidget. | 89 // not be shown yet. That should happen in response to ShowCreatedWidget. |
91 // |popup_type| indicates if the widget is a popup and what kind of popup it | 90 // |popup_type| indicates if the widget is a popup and what kind of popup it |
92 // is (select, autofill...). | 91 // is (select, autofill...). |
93 virtual void CreateNewWidget(int route_id, | 92 virtual void CreateNewWidget(int route_id, |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
381 virtual void RequestToLockMouse() {} | 380 virtual void RequestToLockMouse() {} |
382 | 381 |
383 // Notification that the view has lost the mouse lock. | 382 // Notification that the view has lost the mouse lock. |
384 virtual void LostMouseLock() {} | 383 virtual void LostMouseLock() {} |
385 | 384 |
386 protected: | 385 protected: |
387 virtual ~RenderViewHostDelegate() {} | 386 virtual ~RenderViewHostDelegate() {} |
388 }; | 387 }; |
389 | 388 |
390 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 389 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |