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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // that the browser process may update the preferences at any time. | 78 // that the browser process may update the preferences at any time. |
79 virtual void SetWebkitPreferences(const WebPreferences& preferences) = 0; | 79 virtual void SetWebkitPreferences(const WebPreferences& preferences) = 0; |
80 | 80 |
81 // Returns the associated WebView. May return NULL when the view is closing. | 81 // Returns the associated WebView. May return NULL when the view is closing. |
82 virtual blink::WebView* GetWebView() = 0; | 82 virtual blink::WebView* GetWebView() = 0; |
83 | 83 |
84 // Returns true if the parameter node is a textfield, text area, a content | 84 // Returns true if the parameter node is a textfield, text area, a content |
85 // editable div, or has an ARIA role of textbox. | 85 // editable div, or has an ARIA role of textbox. |
86 virtual bool IsEditableNode(const blink::WebNode& node) const = 0; | 86 virtual bool IsEditableNode(const blink::WebNode& node) const = 0; |
87 | 87 |
| 88 virtual bool IsPluginNode(const blink::WebNode& node) const = 0; |
| 89 |
88 // Returns true if we should display scrollbars for the given view size and | 90 // Returns true if we should display scrollbars for the given view size and |
89 // false if the scrollbars should be hidden. | 91 // false if the scrollbars should be hidden. |
90 virtual bool ShouldDisplayScrollbars(int width, int height) const = 0; | 92 virtual bool ShouldDisplayScrollbars(int width, int height) const = 0; |
91 | 93 |
92 // Bitwise-ORed set of extra bindings that have been enabled. See | 94 // Bitwise-ORed set of extra bindings that have been enabled. See |
93 // BindingsPolicy for details. | 95 // BindingsPolicy for details. |
94 virtual int GetEnabledBindings() const = 0; | 96 virtual int GetEnabledBindings() const = 0; |
95 | 97 |
96 // Whether content state (such as form state, scroll position and page | 98 // Whether content state (such as form state, scroll position and page |
97 // contents) should be sent to the browser immediately. This is normally | 99 // contents) should be sent to the browser immediately. This is normally |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 134 |
133 private: | 135 private: |
134 // This interface should only be implemented inside content. | 136 // This interface should only be implemented inside content. |
135 friend class RenderViewImpl; | 137 friend class RenderViewImpl; |
136 RenderView() {} | 138 RenderView() {} |
137 }; | 139 }; |
138 | 140 |
139 } // namespace content | 141 } // namespace content |
140 | 142 |
141 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 143 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |