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> |
| 9 |
8 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
9 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
10 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
11 #include "content/public/common/top_controls_state.h" | 13 #include "content/public/common/top_controls_state.h" |
12 #include "ipc/ipc_sender.h" | 14 #include "ipc/ipc_sender.h" |
13 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" | 15 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" |
14 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" | 16 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" |
15 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
16 | 18 |
17 struct WebPreferences; | 19 struct WebPreferences; |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 virtual void Repaint(const gfx::Size& size) = 0; | 158 virtual void Repaint(const gfx::Size& size) = 0; |
157 | 159 |
158 // Inject edit commands to be used for the next keyboard event. | 160 // Inject edit commands to be used for the next keyboard event. |
159 virtual void SetEditCommandForNextKeyEvent(const std::string& name, | 161 virtual void SetEditCommandForNextKeyEvent(const std::string& name, |
160 const std::string& value) = 0; | 162 const std::string& value) = 0; |
161 virtual void ClearEditCommands() = 0; | 163 virtual void ClearEditCommands() = 0; |
162 | 164 |
163 // Returns a collection of security info about |frame|. | 165 // Returns a collection of security info about |frame|. |
164 virtual SSLStatus GetSSLStatusOfFrame(WebKit::WebFrame* frame) const = 0; | 166 virtual SSLStatus GetSSLStatusOfFrame(WebKit::WebFrame* frame) const = 0; |
165 | 167 |
| 168 // Returns |renderer_preferences_.accept_languages| value. |
| 169 virtual const std::string& GetAcceptLanguages() const = 0; |
| 170 |
166 #if defined(OS_ANDROID) | 171 #if defined(OS_ANDROID) |
167 virtual void UpdateTopControlsState(TopControlsState constraints, | 172 virtual void UpdateTopControlsState(TopControlsState constraints, |
168 TopControlsState current, | 173 TopControlsState current, |
169 bool animate) = 0; | 174 bool animate) = 0; |
170 #endif | 175 #endif |
171 | 176 |
172 protected: | 177 protected: |
173 virtual ~RenderView() {} | 178 virtual ~RenderView() {} |
174 | 179 |
175 private: | 180 private: |
176 // This interface should only be implemented inside content. | 181 // This interface should only be implemented inside content. |
177 friend class RenderViewImpl; | 182 friend class RenderViewImpl; |
178 RenderView() {} | 183 RenderView() {} |
179 }; | 184 }; |
180 | 185 |
181 } // namespace content | 186 } // namespace content |
182 | 187 |
183 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 188 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |