OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/plugins/renderer/webview_plugin.h" | 5 #include "components/plugins/renderer/webview_plugin.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
8 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
9 #include "base/numerics/safe_conversions.h" | 11 #include "base/numerics/safe_conversions.h" |
10 #include "content/public/common/web_preferences.h" | 12 #include "content/public/common/web_preferences.h" |
11 #include "content/public/renderer/render_view.h" | 13 #include "content/public/renderer/render_view.h" |
12 #include "gin/converter.h" | 14 #include "gin/converter.h" |
13 #include "skia/ext/platform_canvas.h" | 15 #include "skia/ext/platform_canvas.h" |
14 #include "third_party/WebKit/public/platform/WebSize.h" | 16 #include "third_party/WebKit/public/platform/WebSize.h" |
15 #include "third_party/WebKit/public/platform/WebURL.h" | 17 #include "third_party/WebKit/public/platform/WebURL.h" |
16 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 18 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 // By default RenderViewObservers are destroyed along with the RenderView. | 323 // By default RenderViewObservers are destroyed along with the RenderView. |
322 // WebViewPlugin has a custom destruction mechanism, so we disable this. | 324 // WebViewPlugin has a custom destruction mechanism, so we disable this. |
323 } | 325 } |
324 | 326 |
325 void WebViewPlugin::OnZoomLevelChanged() { | 327 void WebViewPlugin::OnZoomLevelChanged() { |
326 if (container_) { | 328 if (container_) { |
327 web_view_->setZoomLevel( | 329 web_view_->setZoomLevel( |
328 blink::WebView::zoomFactorToZoomLevel(container_->pageZoomFactor())); | 330 blink::WebView::zoomFactorToZoomLevel(container_->pageZoomFactor())); |
329 } | 331 } |
330 } | 332 } |
OLD | NEW |