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 #include "android_webview/renderer/aw_render_view_ext.h" | 5 #include "android_webview/renderer/aw_render_view_ext.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "android_webview/common/aw_hit_test_data.h" | 9 #include "android_webview/common/aw_hit_test_data.h" |
10 #include "android_webview/common/render_view_messages.h" | 10 #include "android_webview/common/render_view_messages.h" |
11 #include "android_webview/common/renderer_picture_map.h" | |
12 #include "base/bind.h" | 11 #include "base/bind.h" |
13 #include "base/strings/string_piece.h" | 12 #include "base/strings/string_piece.h" |
14 #include "content/public/common/url_constants.h" | 13 #include "content/public/common/url_constants.h" |
15 #include "content/public/renderer/android_content_detection_prefixes.h" | 14 #include "content/public/renderer/android_content_detection_prefixes.h" |
16 #include "content/public/renderer/document_state.h" | 15 #include "content/public/renderer/document_state.h" |
17 #include "content/public/renderer/render_view.h" | 16 #include "content/public/renderer/render_view.h" |
18 #include "skia/ext/refptr.h" | 17 #include "skia/ext/refptr.h" |
19 #include "third_party/WebKit/public/platform/WebSize.h" | 18 #include "third_party/WebKit/public/platform/WebSize.h" |
20 #include "third_party/WebKit/public/platform/WebURL.h" | 19 #include "third_party/WebKit/public/platform/WebURL.h" |
21 #include "third_party/WebKit/public/platform/WebVector.h" | 20 #include "third_party/WebKit/public/platform/WebVector.h" |
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" |
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHitTestResult.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHitTestResult.h" |
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" |
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeList.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeList.h" |
29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" | 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" |
30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
31 #include "third_party/skia/include/core/SkPicture.h" | |
32 | 30 |
33 namespace android_webview { | 31 namespace android_webview { |
34 | 32 |
35 namespace { | 33 namespace { |
36 | 34 |
37 GURL GetAbsoluteUrl(const WebKit::WebNode& node, const string16& url_fragment) { | 35 GURL GetAbsoluteUrl(const WebKit::WebNode& node, const string16& url_fragment) { |
38 return GURL(node.document().completeURL(url_fragment)); | 36 return GURL(node.document().completeURL(url_fragment)); |
39 } | 37 } |
40 | 38 |
41 string16 GetHref(const WebKit::WebElement& element) { | 39 string16 GetHref(const WebKit::WebElement& element) { |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 } | 267 } |
270 | 268 |
271 void AwRenderViewExt::OnSetInitialPageScale(double page_scale_factor) { | 269 void AwRenderViewExt::OnSetInitialPageScale(double page_scale_factor) { |
272 if (!render_view() || !render_view()->GetWebView()) | 270 if (!render_view() || !render_view()->GetWebView()) |
273 return; | 271 return; |
274 render_view()->GetWebView()->setInitialPageScaleOverride( | 272 render_view()->GetWebView()->setInitialPageScaleOverride( |
275 page_scale_factor); | 273 page_scale_factor); |
276 } | 274 } |
277 | 275 |
278 } // namespace android_webview | 276 } // namespace android_webview |
OLD | NEW |