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 "base/string16.h" | 9 #include "base/string16.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // redirects, like the page cycler uses (document.location.href="foo") do not | 61 // redirects, like the page cycler uses (document.location.href="foo") do not |
62 // count as regular navigations and do not increment the page id. | 62 // count as regular navigations and do not increment the page id. |
63 virtual int GetPageId() const = 0; | 63 virtual int GetPageId() const = 0; |
64 | 64 |
65 // Returns the size of the view. | 65 // Returns the size of the view. |
66 virtual gfx::Size GetSize() const = 0; | 66 virtual gfx::Size GetSize() const = 0; |
67 | 67 |
68 // Gets WebKit related preferences associated with this view. | 68 // Gets WebKit related preferences associated with this view. |
69 virtual webkit_glue::WebPreferences& GetWebkitPreferences() = 0; | 69 virtual webkit_glue::WebPreferences& GetWebkitPreferences() = 0; |
70 | 70 |
| 71 // Overrides the WebKit related preferences associated with this view. Note |
| 72 // that the browser process may update the preferences at any time. |
| 73 virtual void SetWebkitPreferences( |
| 74 const webkit_glue::WebPreferences& preferences) = 0; |
| 75 |
71 // Returns the associated WebView. May return NULL when the view is closing. | 76 // Returns the associated WebView. May return NULL when the view is closing. |
72 virtual WebKit::WebView* GetWebView() = 0; | 77 virtual WebKit::WebView* GetWebView() = 0; |
73 | 78 |
74 // Gets the focused node. If no such node exists then the node will be isNull. | 79 // Gets the focused node. If no such node exists then the node will be isNull. |
75 virtual WebKit::WebNode GetFocusedNode() const = 0; | 80 virtual WebKit::WebNode GetFocusedNode() const = 0; |
76 | 81 |
77 // Gets the node that the context menu was pressed over. | 82 // Gets the node that the context menu was pressed over. |
78 virtual WebKit::WebNode GetContextMenuNode() const = 0; | 83 virtual WebKit::WebNode GetContextMenuNode() const = 0; |
79 | 84 |
80 // Returns true if the parameter node is a textfield, text area, a content | 85 // Returns true if the parameter node is a textfield, text area, a content |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 const std::string& value) = 0; | 156 const std::string& value) = 0; |
152 virtual void ClearEditCommands() = 0; | 157 virtual void ClearEditCommands() = 0; |
153 | 158 |
154 protected: | 159 protected: |
155 virtual ~RenderView() {} | 160 virtual ~RenderView() {} |
156 }; | 161 }; |
157 | 162 |
158 } // namespace content | 163 } // namespace content |
159 | 164 |
160 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 165 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |