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" | 11 #include "android_webview/common/renderer_picture_map.h" |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/string_piece.h" | 13 #include "base/strings/string_piece.h" |
14 #include "content/public/common/url_constants.h" | 14 #include "content/public/common/url_constants.h" |
15 #include "content/public/renderer/android_content_detection_prefixes.h" | 15 #include "content/public/renderer/android_content_detection_prefixes.h" |
16 #include "content/public/renderer/document_state.h" | 16 #include "content/public/renderer/document_state.h" |
17 #include "content/public/renderer/render_view.h" | 17 #include "content/public/renderer/render_view.h" |
18 #include "skia/ext/refptr.h" | 18 #include "skia/ext/refptr.h" |
19 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 19 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" |
20 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" | 20 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" |
21 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" | 21 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" |
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" |
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 } | 265 } |
266 | 266 |
267 void AwRenderViewExt::OnSetInitialPageScale(double page_scale_factor) { | 267 void AwRenderViewExt::OnSetInitialPageScale(double page_scale_factor) { |
268 if (!render_view() || !render_view()->GetWebView()) | 268 if (!render_view() || !render_view()->GetWebView()) |
269 return; | 269 return; |
270 render_view()->GetWebView()->setInitialPageScaleOverride( | 270 render_view()->GetWebView()->setInitialPageScaleOverride( |
271 page_scale_factor); | 271 page_scale_factor); |
272 } | 272 } |
273 | 273 |
274 } // namespace android_webview | 274 } // namespace android_webview |
OLD | NEW |