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" |
11 #include "ipc/ipc_sender.h" | 11 #include "ipc/ipc_sender.h" |
| 12 #include "skia/ext/refptr.h" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h
" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h
" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" |
14 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
15 | 16 |
| 17 class SkPicture; |
| 18 |
16 namespace webkit_glue { | 19 namespace webkit_glue { |
17 struct WebPreferences; | 20 struct WebPreferences; |
18 } | 21 } |
19 | 22 |
20 namespace WebKit { | 23 namespace WebKit { |
21 class WebFrame; | 24 class WebFrame; |
22 class WebNode; | 25 class WebNode; |
23 class WebPlugin; | 26 class WebPlugin; |
24 class WebString; | 27 class WebString; |
25 class WebURLRequest; | 28 class WebURLRequest; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 virtual void Repaint(const gfx::Size& size) = 0; | 159 virtual void Repaint(const gfx::Size& size) = 0; |
157 | 160 |
158 // Inject edit commands to be used for the next keyboard event. | 161 // Inject edit commands to be used for the next keyboard event. |
159 virtual void SetEditCommandForNextKeyEvent(const std::string& name, | 162 virtual void SetEditCommandForNextKeyEvent(const std::string& name, |
160 const std::string& value) = 0; | 163 const std::string& value) = 0; |
161 virtual void ClearEditCommands() = 0; | 164 virtual void ClearEditCommands() = 0; |
162 | 165 |
163 // Returns a collection of security info about |frame|. | 166 // Returns a collection of security info about |frame|. |
164 virtual SSLStatus GetSSLStatusOfFrame(WebKit::WebFrame* frame) const = 0; | 167 virtual SSLStatus GetSSLStatusOfFrame(WebKit::WebFrame* frame) const = 0; |
165 | 168 |
| 169 #if defined(OS_ANDROID) |
| 170 // Returns a SkPicture with the full contents of the current frame as part of |
| 171 // the legacy Android WebView capture picture API. As it involves playing back |
| 172 // all the drawing commands of the current frame it can have an important |
| 173 // performance impact and should not be used for other purposes. |
| 174 // Requires enabling the impl-side painting feature in the compositor. |
| 175 virtual skia::RefPtr<SkPicture> CapturePicture() = 0; |
| 176 #endif |
| 177 |
166 protected: | 178 protected: |
167 virtual ~RenderView() {} | 179 virtual ~RenderView() {} |
168 }; | 180 }; |
169 | 181 |
170 } // namespace content | 182 } // namespace content |
171 | 183 |
172 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 184 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |