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

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

Issue 24649002: Clean up a few more unused globals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: thestig comment Created 7 years, 2 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 | Annotate | Revision Log
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"
(...skipping 30 matching lines...) Expand all
41 using WebKit::WebTextDirection; 41 using WebKit::WebTextDirection;
42 using WebKit::WebTextInputType; 42 using WebKit::WebTextInputType;
43 using WebKit::WebVector; 43 using WebKit::WebVector;
44 using WebKit::WebWidget; 44 using WebKit::WebWidget;
45 using WebKit::WGC3Dintptr; 45 using WebKit::WGC3Dintptr;
46 46
47 namespace content { 47 namespace content {
48 48
49 namespace { 49 namespace {
50 50
51 // See third_party/WebKit/Source/WebCore/dom/WheelEvent.h.
52 const float kTickDivisor = 120.0f;
53
54 class FullscreenMouseLockDispatcher : public MouseLockDispatcher { 51 class FullscreenMouseLockDispatcher : public MouseLockDispatcher {
55 public: 52 public:
56 explicit FullscreenMouseLockDispatcher(RenderWidgetFullscreenPepper* widget); 53 explicit FullscreenMouseLockDispatcher(RenderWidgetFullscreenPepper* widget);
57 virtual ~FullscreenMouseLockDispatcher(); 54 virtual ~FullscreenMouseLockDispatcher();
58 55
59 private: 56 private:
60 // MouseLockDispatcher implementation. 57 // MouseLockDispatcher implementation.
61 virtual void SendLockMouseRequest(bool unlocked_by_target) OVERRIDE; 58 virtual void SendLockMouseRequest(bool unlocked_by_target) OVERRIDE;
62 virtual void SendUnlockMouseRequest() OVERRIDE; 59 virtual void SendUnlockMouseRequest() OVERRIDE;
63 60
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 } 492 }
496 493
497 void RenderWidgetFullscreenPepper::SetDeviceScaleFactor( 494 void RenderWidgetFullscreenPepper::SetDeviceScaleFactor(
498 float device_scale_factor) { 495 float device_scale_factor) {
499 RenderWidget::SetDeviceScaleFactor(device_scale_factor); 496 RenderWidget::SetDeviceScaleFactor(device_scale_factor);
500 if (compositor_) 497 if (compositor_)
501 compositor_->setDeviceScaleFactor(device_scale_factor); 498 compositor_->setDeviceScaleFactor(device_scale_factor);
502 } 499 }
503 500
504 } // namespace content 501 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698