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

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: fix compilation issue Created 6 years, 9 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
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 blink::WebDeviceOrientationListener* listener) OVERRIDE; 152 blink::WebDeviceOrientationListener* listener) OVERRIDE;
153 virtual blink::WebCrypto* crypto() OVERRIDE; 153 virtual blink::WebCrypto* crypto() OVERRIDE;
154 virtual void queryStorageUsageAndQuota( 154 virtual void queryStorageUsageAndQuota(
155 const blink::WebURL& storage_partition, 155 const blink::WebURL& storage_partition,
156 blink::WebStorageQuotaType, 156 blink::WebStorageQuotaType,
157 blink::WebStorageQuotaCallbacks) OVERRIDE; 157 blink::WebStorageQuotaCallbacks) OVERRIDE;
158 virtual void vibrate(unsigned int milliseconds); 158 virtual void vibrate(unsigned int milliseconds);
159 virtual void cancelVibration(); 159 virtual void cancelVibration();
160 virtual void setScreenOrientationListener( 160 virtual void setScreenOrientationListener(
161 blink::WebScreenOrientationListener*) OVERRIDE; 161 blink::WebScreenOrientationListener*) OVERRIDE;
162 virtual void lockOrientation(blink::WebScreenOrientations) OVERRIDE;
163 virtual void unlockOrientation() OVERRIDE;
162 164
163 // Disables the WebSandboxSupport implementation for testing. 165 // Disables the WebSandboxSupport implementation for testing.
164 // Tests that do not set up a full sandbox environment should call 166 // Tests that do not set up a full sandbox environment should call
165 // SetSandboxEnabledForTesting(false) _before_ creating any instances 167 // SetSandboxEnabledForTesting(false) _before_ creating any instances
166 // of this class, to ensure that we don't attempt to use sandbox-related 168 // of this class, to ensure that we don't attempt to use sandbox-related
167 // file descriptors or other resources. 169 // file descriptors or other resources.
168 // 170 //
169 // Returns the previous |enable| value. 171 // Returns the previous |enable| value.
170 static bool SetSandboxEnabledForTesting(bool enable); 172 static bool SetSandboxEnabledForTesting(bool enable);
171 173
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 scoped_ptr<WebCryptoImpl> web_crypto_; 230 scoped_ptr<WebCryptoImpl> web_crypto_;
229 231
230 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_; 232 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_;
231 233
232 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); 234 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl);
233 }; 235 };
234 236
235 } // namespace content 237 } // namespace content
236 238
237 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 239 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698