Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(358)

Side by Side Diff: components/plugins/renderer/webview_plugin.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/plugins/renderer/plugin_placeholder.h ('k') | components/power/origin_power_map.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « components/plugins/renderer/plugin_placeholder.h ('k') | components/power/origin_power_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698