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

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

Issue 177793003: Chromium plumbing for Screen Orientation API lock/unlock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chromium_plumbing_screen_orientation
Patch Set: with tests Created 6 years, 10 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 "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 blink::WebDeviceOrientationListener* listener) OVERRIDE; 147 blink::WebDeviceOrientationListener* listener) OVERRIDE;
148 virtual blink::WebCrypto* crypto() OVERRIDE; 148 virtual blink::WebCrypto* crypto() OVERRIDE;
149 virtual void queryStorageUsageAndQuota( 149 virtual void queryStorageUsageAndQuota(
150 const blink::WebURL& storage_partition, 150 const blink::WebURL& storage_partition,
151 blink::WebStorageQuotaType, 151 blink::WebStorageQuotaType,
152 blink::WebStorageQuotaCallbacks) OVERRIDE; 152 blink::WebStorageQuotaCallbacks) OVERRIDE;
153 virtual void vibrate(unsigned int milliseconds); 153 virtual void vibrate(unsigned int milliseconds);
154 virtual void cancelVibration(); 154 virtual void cancelVibration();
155 virtual void setScreenOrientationListener( 155 virtual void setScreenOrientationListener(
156 blink::WebScreenOrientationListener*) OVERRIDE; 156 blink::WebScreenOrientationListener*) OVERRIDE;
157 virtual void lockOrientation(blink::WebScreenOrientations) OVERRIDE;
158 virtual void unlockOrientation() OVERRIDE;
157 159
158 // Disables the WebSandboxSupport implementation for testing. 160 // Disables the WebSandboxSupport implementation for testing.
159 // Tests that do not set up a full sandbox environment should call 161 // Tests that do not set up a full sandbox environment should call
160 // SetSandboxEnabledForTesting(false) _before_ creating any instances 162 // SetSandboxEnabledForTesting(false) _before_ creating any instances
161 // of this class, to ensure that we don't attempt to use sandbox-related 163 // of this class, to ensure that we don't attempt to use sandbox-related
162 // file descriptors or other resources. 164 // file descriptors or other resources.
163 // 165 //
164 // Returns the previous |enable| value. 166 // Returns the previous |enable| value.
165 static bool SetSandboxEnabledForTesting(bool enable); 167 static bool SetSandboxEnabledForTesting(bool enable);
166 168
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 scoped_ptr<WebCryptoImpl> web_crypto_; 225 scoped_ptr<WebCryptoImpl> web_crypto_;
224 226
225 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_; 227 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_;
226 228
227 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); 229 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl);
228 }; 230 };
229 231
230 } // namespace content 232 } // namespace content
231 233
232 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 234 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698