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 "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" |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 } | 377 } |
378 | 378 |
379 WebWidget* RenderWidgetFullscreenPepper::CreateWebWidget() { | 379 WebWidget* RenderWidgetFullscreenPepper::CreateWebWidget() { |
380 return new PepperWidget(this); | 380 return new PepperWidget(this); |
381 } | 381 } |
382 | 382 |
383 GURL RenderWidgetFullscreenPepper::GetURLForGraphicsContext3D() { | 383 GURL RenderWidgetFullscreenPepper::GetURLForGraphicsContext3D() { |
384 return active_url_; | 384 return active_url_; |
385 } | 385 } |
386 | 386 |
387 void RenderWidgetFullscreenPepper::SetDeviceScaleFactor( | 387 void RenderWidgetFullscreenPepper::OnDeviceScaleFactorChanged() { |
388 float device_scale_factor) { | |
389 RenderWidget::SetDeviceScaleFactor(device_scale_factor); | |
390 if (compositor_) | 388 if (compositor_) |
391 compositor_->setDeviceScaleFactor(device_scale_factor); | 389 compositor_->setDeviceScaleFactor(device_scale_factor_); |
392 } | 390 } |
393 | 391 |
394 } // namespace content | 392 } // namespace content |
OLD | NEW |