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 25 matching lines...) Expand all Loading... |
36 using blink::WebMouseEvent; | 36 using blink::WebMouseEvent; |
37 using blink::WebMouseWheelEvent; | 37 using blink::WebMouseWheelEvent; |
38 using blink::WebPoint; | 38 using blink::WebPoint; |
39 using blink::WebRect; | 39 using blink::WebRect; |
40 using blink::WebSize; | 40 using blink::WebSize; |
41 using blink::WebString; | 41 using blink::WebString; |
42 using blink::WebTextDirection; | 42 using blink::WebTextDirection; |
43 using blink::WebTextInputType; | 43 using blink::WebTextInputType; |
44 using blink::WebVector; | 44 using blink::WebVector; |
45 using blink::WebWidget; | 45 using blink::WebWidget; |
46 using blink::WGC3Dintptr; | |
47 | 46 |
48 namespace content { | 47 namespace content { |
49 | 48 |
50 namespace { | 49 namespace { |
51 | 50 |
52 class FullscreenMouseLockDispatcher : public MouseLockDispatcher { | 51 class FullscreenMouseLockDispatcher : public MouseLockDispatcher { |
53 public: | 52 public: |
54 explicit FullscreenMouseLockDispatcher(RenderWidgetFullscreenPepper* widget); | 53 explicit FullscreenMouseLockDispatcher(RenderWidgetFullscreenPepper* widget); |
55 ~FullscreenMouseLockDispatcher() override; | 54 ~FullscreenMouseLockDispatcher() override; |
56 | 55 |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 GURL RenderWidgetFullscreenPepper::GetURLForGraphicsContext3D() { | 382 GURL RenderWidgetFullscreenPepper::GetURLForGraphicsContext3D() { |
384 return active_url_; | 383 return active_url_; |
385 } | 384 } |
386 | 385 |
387 void RenderWidgetFullscreenPepper::OnDeviceScaleFactorChanged() { | 386 void RenderWidgetFullscreenPepper::OnDeviceScaleFactorChanged() { |
388 if (compositor_) | 387 if (compositor_) |
389 compositor_->setDeviceScaleFactor(device_scale_factor_); | 388 compositor_->setDeviceScaleFactor(device_scale_factor_); |
390 } | 389 } |
391 | 390 |
392 } // namespace content | 391 } // namespace content |
OLD | NEW |