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

Side by Side Diff: content/renderer/renderer_webkitplatformsupport_impl.h

Issue 398013002: Poll for Display rotation on Android 4.0 and 4.1 when needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 #ifndef CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/child/blink_platform_impl.h" 10 #include "content/child/blink_platform_impl.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 blink::WebStorageQuotaCallbacks); 148 blink::WebStorageQuotaCallbacks);
149 virtual void vibrate(unsigned int milliseconds); 149 virtual void vibrate(unsigned int milliseconds);
150 virtual void cancelVibration(); 150 virtual void cancelVibration();
151 virtual void setBatteryStatusListener( 151 virtual void setBatteryStatusListener(
152 blink::WebBatteryStatusListener* listener); 152 blink::WebBatteryStatusListener* listener);
153 153
154 void set_gamepad_provider(RendererGamepadProvider* provider) { 154 void set_gamepad_provider(RendererGamepadProvider* provider) {
155 gamepad_provider_ = provider; 155 gamepad_provider_ = provider;
156 } 156 }
157 157
158 virtual void startScreenOrientationListening();
jam 2014/07/16 21:29:14 nit: all the overridden methods are beside each ot
mlamouri (slow - plz ping) 2014/07/17 09:44:16 Done.
159 virtual void stopScreenOrientationListening();
160
158 // Disables the WebSandboxSupport implementation for testing. 161 // Disables the WebSandboxSupport implementation for testing.
159 // Tests that do not set up a full sandbox environment should call 162 // Tests that do not set up a full sandbox environment should call
160 // SetSandboxEnabledForTesting(false) _before_ creating any instances 163 // SetSandboxEnabledForTesting(false) _before_ creating any instances
161 // of this class, to ensure that we don't attempt to use sandbox-related 164 // of this class, to ensure that we don't attempt to use sandbox-related
162 // file descriptors or other resources. 165 // file descriptors or other resources.
163 // 166 //
164 // Returns the previous |enable| value. 167 // Returns the previous |enable| value.
165 static bool SetSandboxEnabledForTesting(bool enable); 168 static bool SetSandboxEnabledForTesting(bool enable);
166 169
167 // Set a double to return when setDeviceLightListener is invoked. 170 // Set a double to return when setDeviceLightListener is invoked.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; 233 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_;
231 234
232 RendererGamepadProvider* gamepad_provider_; 235 RendererGamepadProvider* gamepad_provider_;
233 236
234 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); 237 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl);
235 }; 238 };
236 239
237 } // namespace content 240 } // namespace content
238 241
239 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 242 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698