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" |
15 #include "third_party/skia/include/core/SkPicture.h" | |
jamesr
2013/01/11 21:53:26
please don't include this header just to have refe
Leandro Graciá Gil
2013/01/15 20:46:11
Done.
| |
14 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
15 | 17 |
16 namespace webkit_glue { | 18 namespace webkit_glue { |
17 struct WebPreferences; | 19 struct WebPreferences; |
18 } | 20 } |
19 | 21 |
20 namespace WebKit { | 22 namespace WebKit { |
21 class WebFrame; | 23 class WebFrame; |
22 class WebNode; | 24 class WebNode; |
23 class WebPlugin; | 25 class WebPlugin; |
(...skipping 132 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 #if defined(OS_ANDROID) | |
169 typedef base::Callback<void(skia::RefPtr<SkPicture>)> CapturePictureCallback; | |
170 | |
171 // Sets a callback to receive a new SkPicture with the contents of every new | |
Jói
2013/01/11 18:40:08
Can there be exactly 0 or 1 callback, or can there
Leandro Graciá Gil
2013/01/15 20:46:11
Removing and implementing via RenderViewObserver.
| |
172 // frame as part of the legacy Android WebView capture picture API. | |
173 // Should not be used for any other purposes for performance reasons. | |
174 // Requires the kEnableWebViewCapturePictureAPI command line switch to be set. | |
175 virtual void SetCapturePictureCallback( | |
Leandro Graciá Gil
2013/01/11 13:11:33
Some extra context here. We need to support both t
| |
176 const CapturePictureCallback& callback) = 0; | |
177 | |
178 // Returns a SkPicture with the full contents of the current frame as part of | |
179 // the legacy Android WebView capture picture API. | |
180 // Should not be used for any other purposes for performance reasons. | |
181 // Requires the kEnableWebViewCapturePictureAPI command line switch to be set. | |
182 virtual skia::RefPtr<SkPicture> CapturePicture() = 0; | |
183 #endif | |
184 | |
166 protected: | 185 protected: |
167 virtual ~RenderView() {} | 186 virtual ~RenderView() {} |
168 }; | 187 }; |
169 | 188 |
170 } // namespace content | 189 } // namespace content |
171 | 190 |
172 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 191 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |