| 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" | |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h
" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h
" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" |
| 15 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
| 16 | 15 |
| 17 class SkPicture; | |
| 18 | |
| 19 namespace webkit_glue { | 16 namespace webkit_glue { |
| 20 struct WebPreferences; | 17 struct WebPreferences; |
| 21 } | 18 } |
| 22 | 19 |
| 23 namespace WebKit { | 20 namespace WebKit { |
| 24 class WebFrame; | 21 class WebFrame; |
| 25 class WebNode; | 22 class WebNode; |
| 26 class WebPlugin; | 23 class WebPlugin; |
| 27 class WebString; | 24 class WebString; |
| 28 class WebURLRequest; | 25 class WebURLRequest; |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 virtual void Repaint(const gfx::Size& size) = 0; | 156 virtual void Repaint(const gfx::Size& size) = 0; |
| 160 | 157 |
| 161 // Inject edit commands to be used for the next keyboard event. | 158 // Inject edit commands to be used for the next keyboard event. |
| 162 virtual void SetEditCommandForNextKeyEvent(const std::string& name, | 159 virtual void SetEditCommandForNextKeyEvent(const std::string& name, |
| 163 const std::string& value) = 0; | 160 const std::string& value) = 0; |
| 164 virtual void ClearEditCommands() = 0; | 161 virtual void ClearEditCommands() = 0; |
| 165 | 162 |
| 166 // Returns a collection of security info about |frame|. | 163 // Returns a collection of security info about |frame|. |
| 167 virtual SSLStatus GetSSLStatusOfFrame(WebKit::WebFrame* frame) const = 0; | 164 virtual SSLStatus GetSSLStatusOfFrame(WebKit::WebFrame* frame) const = 0; |
| 168 | 165 |
| 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 | |
| 178 protected: | 166 protected: |
| 179 virtual ~RenderView() {} | 167 virtual ~RenderView() {} |
| 180 }; | 168 }; |
| 181 | 169 |
| 182 } // namespace content | 170 } // namespace content |
| 183 | 171 |
| 184 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 172 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |