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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 namespace { | 48 namespace { |
49 | 49 |
50 class FullscreenMouseLockDispatcher : public MouseLockDispatcher { | 50 class FullscreenMouseLockDispatcher : public MouseLockDispatcher { |
51 public: | 51 public: |
52 explicit FullscreenMouseLockDispatcher(RenderWidgetFullscreenPepper* widget); | 52 explicit FullscreenMouseLockDispatcher(RenderWidgetFullscreenPepper* widget); |
53 virtual ~FullscreenMouseLockDispatcher(); | 53 virtual ~FullscreenMouseLockDispatcher(); |
54 | 54 |
55 private: | 55 private: |
56 // MouseLockDispatcher implementation. | 56 // MouseLockDispatcher implementation. |
57 virtual void SendLockMouseRequest(bool unlocked_by_target) OVERRIDE; | 57 virtual void SendLockMouseRequest(bool unlocked_by_target) override; |
58 virtual void SendUnlockMouseRequest() OVERRIDE; | 58 virtual void SendUnlockMouseRequest() override; |
59 | 59 |
60 RenderWidgetFullscreenPepper* widget_; | 60 RenderWidgetFullscreenPepper* widget_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(FullscreenMouseLockDispatcher); | 62 DISALLOW_COPY_AND_ASSIGN(FullscreenMouseLockDispatcher); |
63 }; | 63 }; |
64 | 64 |
65 WebMouseEvent WebMouseEventFromGestureEvent(const WebGestureEvent& gesture) { | 65 WebMouseEvent WebMouseEventFromGestureEvent(const WebGestureEvent& gesture) { |
66 WebMouseEvent mouse; | 66 WebMouseEvent mouse; |
67 | 67 |
68 switch (gesture.type) { | 68 switch (gesture.type) { |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 } | 389 } |
390 | 390 |
391 void RenderWidgetFullscreenPepper::SetDeviceScaleFactor( | 391 void RenderWidgetFullscreenPepper::SetDeviceScaleFactor( |
392 float device_scale_factor) { | 392 float device_scale_factor) { |
393 RenderWidget::SetDeviceScaleFactor(device_scale_factor); | 393 RenderWidget::SetDeviceScaleFactor(device_scale_factor); |
394 if (compositor_) | 394 if (compositor_) |
395 compositor_->setDeviceScaleFactor(device_scale_factor); | 395 compositor_->setDeviceScaleFactor(device_scale_factor); |
396 } | 396 } |
397 | 397 |
398 } // namespace content | 398 } // namespace content |
OLD | NEW |