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

Side by Side Diff: content/renderer/render_widget_fullscreen_pepper.cc

Issue 1547073003: Switch to standard integer types in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
OLDNEW
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 "content/renderer/render_widget_fullscreen_pepper.h" 5 #include "content/renderer/render_widget_fullscreen_pepper.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/macros.h"
11 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "build/build_config.h"
12 #include "content/common/gpu/client/gpu_channel_host.h" 14 #include "content/common/gpu/client/gpu_channel_host.h"
13 #include "content/common/view_messages.h" 15 #include "content/common/view_messages.h"
14 #include "content/public/common/content_switches.h" 16 #include "content/public/common/content_switches.h"
15 #include "content/renderer/gpu/render_widget_compositor.h" 17 #include "content/renderer/gpu/render_widget_compositor.h"
16 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" 18 #include "content/renderer/pepper/pepper_plugin_instance_impl.h"
17 #include "content/renderer/render_thread_impl.h" 19 #include "content/renderer/render_thread_impl.h"
18 #include "gpu/command_buffer/client/gles2_implementation.h" 20 #include "gpu/command_buffer/client/gles2_implementation.h"
19 #include "skia/ext/platform_canvas.h" 21 #include "skia/ext/platform_canvas.h"
20 #include "third_party/WebKit/public/platform/WebCanvas.h" 22 #include "third_party/WebKit/public/platform/WebCanvas.h"
21 #include "third_party/WebKit/public/platform/WebCursorInfo.h" 23 #include "third_party/WebKit/public/platform/WebCursorInfo.h"
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 RenderWidgetFullscreenPepper* widget_; 255 RenderWidgetFullscreenPepper* widget_;
254 WebSize size_; 256 WebSize size_;
255 257
256 DISALLOW_COPY_AND_ASSIGN(PepperWidget); 258 DISALLOW_COPY_AND_ASSIGN(PepperWidget);
257 }; 259 };
258 260
259 } // anonymous namespace 261 } // anonymous namespace
260 262
261 // static 263 // static
262 RenderWidgetFullscreenPepper* RenderWidgetFullscreenPepper::Create( 264 RenderWidgetFullscreenPepper* RenderWidgetFullscreenPepper::Create(
263 int32 opener_id, 265 int32_t opener_id,
264 CompositorDependencies* compositor_deps, 266 CompositorDependencies* compositor_deps,
265 PepperPluginInstanceImpl* plugin, 267 PepperPluginInstanceImpl* plugin,
266 const GURL& active_url, 268 const GURL& active_url,
267 const blink::WebScreenInfo& screen_info) { 269 const blink::WebScreenInfo& screen_info) {
268 DCHECK_NE(MSG_ROUTING_NONE, opener_id); 270 DCHECK_NE(MSG_ROUTING_NONE, opener_id);
269 scoped_refptr<RenderWidgetFullscreenPepper> widget( 271 scoped_refptr<RenderWidgetFullscreenPepper> widget(
270 new RenderWidgetFullscreenPepper(compositor_deps, plugin, active_url, 272 new RenderWidgetFullscreenPepper(compositor_deps, plugin, active_url,
271 screen_info)); 273 screen_info));
272 widget->Init(opener_id); 274 widget->Init(opener_id);
273 widget->AddRef(); 275 widget->AddRef();
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 } 387 }
386 388
387 void RenderWidgetFullscreenPepper::SetDeviceScaleFactor( 389 void RenderWidgetFullscreenPepper::SetDeviceScaleFactor(
388 float device_scale_factor) { 390 float device_scale_factor) {
389 RenderWidget::SetDeviceScaleFactor(device_scale_factor); 391 RenderWidget::SetDeviceScaleFactor(device_scale_factor);
390 if (compositor_) 392 if (compositor_)
391 compositor_->setDeviceScaleFactor(device_scale_factor); 393 compositor_->setDeviceScaleFactor(device_scale_factor);
392 } 394 }
393 395
394 } // namespace content 396 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget_fullscreen_pepper.h ('k') | content/renderer/render_widget_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698