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_PUBLIC_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "ipc/ipc_message.h" | 10 #include "ipc/ipc_message.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // keeping back/forward history in sync. | 57 // keeping back/forward history in sync. |
58 // Note that this is NOT updated for every main frame navigation, only for | 58 // Note that this is NOT updated for every main frame navigation, only for |
59 // "regular" navigations that go into session history. In particular, client | 59 // "regular" navigations that go into session history. In particular, client |
60 // redirects, like the page cycler uses (document.location.href="foo") do not | 60 // redirects, like the page cycler uses (document.location.href="foo") do not |
61 // count as regular navigations and do not increment the page id. | 61 // count as regular navigations and do not increment the page id. |
62 virtual int GetPageId() const = 0; | 62 virtual int GetPageId() const = 0; |
63 | 63 |
64 // Returns the size of the view. | 64 // Returns the size of the view. |
65 virtual gfx::Size GetSize() const = 0; | 65 virtual gfx::Size GetSize() const = 0; |
66 | 66 |
67 // Returns the window we are embedded within. | |
68 virtual gfx::NativeViewId GetHostWindow() const = 0; | |
69 | |
70 // Gets WebKit related preferences associated with this view. | 67 // Gets WebKit related preferences associated with this view. |
71 virtual webkit_glue::WebPreferences& GetWebkitPreferences() = 0; | 68 virtual webkit_glue::WebPreferences& GetWebkitPreferences() = 0; |
72 | 69 |
73 // Returns the associated WebView. May return NULL when the view is closing. | 70 // Returns the associated WebView. May return NULL when the view is closing. |
74 virtual WebKit::WebView* GetWebView() = 0; | 71 virtual WebKit::WebView* GetWebView() = 0; |
75 | 72 |
76 // Gets the focused node. If no such node exists then the node will be isNull. | 73 // Gets the focused node. If no such node exists then the node will be isNull. |
77 virtual WebKit::WebNode GetFocusedNode() const = 0; | 74 virtual WebKit::WebNode GetFocusedNode() const = 0; |
78 | 75 |
79 // Gets the node that the context menu was pressed over. | 76 // Gets the node that the context menu was pressed over. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 // The client should handle the navigation externally. | 125 // The client should handle the navigation externally. |
129 virtual void LoadURLExternally( | 126 virtual void LoadURLExternally( |
130 WebKit::WebFrame* frame, | 127 WebKit::WebFrame* frame, |
131 const WebKit::WebURLRequest& request, | 128 const WebKit::WebURLRequest& request, |
132 WebKit::WebNavigationPolicy policy) = 0; | 129 WebKit::WebNavigationPolicy policy) = 0; |
133 }; | 130 }; |
134 | 131 |
135 } // namespace content | 132 } // namespace content |
136 | 133 |
137 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 134 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |