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

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

Issue 164913004: Chromium plumbing for Screen Orientation API orientationchange events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make chromium-style checks happy 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 13 matching lines...) Expand all
24 } 24 }
25 25
26 namespace IPC { 26 namespace IPC {
27 class SyncMessageFilter; 27 class SyncMessageFilter;
28 } 28 }
29 29
30 namespace blink { 30 namespace blink {
31 class WebDeviceMotionData; 31 class WebDeviceMotionData;
32 class WebDeviceOrientationData; 32 class WebDeviceOrientationData;
33 class WebGraphicsContext3DProvider; 33 class WebGraphicsContext3DProvider;
34 class WebScreenOrientationListener;
34 } 35 }
35 36
36 namespace content { 37 namespace content {
37 class DeviceMotionEventPump; 38 class DeviceMotionEventPump;
38 class DeviceOrientationEventPump; 39 class DeviceOrientationEventPump;
39 class QuotaMessageFilter; 40 class QuotaMessageFilter;
40 class RendererClipboardClient; 41 class RendererClipboardClient;
42 class ScreenOrientationDispatcher;
41 class ThreadSafeSender; 43 class ThreadSafeSender;
42 class WebClipboardImpl; 44 class WebClipboardImpl;
43 class WebCryptoImpl; 45 class WebCryptoImpl;
44 class WebDatabaseObserverImpl; 46 class WebDatabaseObserverImpl;
45 class WebFileSystemImpl; 47 class WebFileSystemImpl;
46 48
47 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl 49 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
48 : public WebKitPlatformSupportImpl { 50 : public WebKitPlatformSupportImpl {
49 public: 51 public:
50 RendererWebKitPlatformSupportImpl(); 52 RendererWebKitPlatformSupportImpl();
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 blink::WebDeviceMotionListener* listener) OVERRIDE; 145 blink::WebDeviceMotionListener* listener) OVERRIDE;
144 virtual void setDeviceOrientationListener( 146 virtual void setDeviceOrientationListener(
145 blink::WebDeviceOrientationListener* listener) OVERRIDE; 147 blink::WebDeviceOrientationListener* listener) OVERRIDE;
146 virtual blink::WebCrypto* crypto() OVERRIDE; 148 virtual blink::WebCrypto* crypto() OVERRIDE;
147 virtual void queryStorageUsageAndQuota( 149 virtual void queryStorageUsageAndQuota(
148 const blink::WebURL& storage_partition, 150 const blink::WebURL& storage_partition,
149 blink::WebStorageQuotaType, 151 blink::WebStorageQuotaType,
150 blink::WebStorageQuotaCallbacks) OVERRIDE; 152 blink::WebStorageQuotaCallbacks) OVERRIDE;
151 virtual void vibrate(unsigned int milliseconds); 153 virtual void vibrate(unsigned int milliseconds);
152 virtual void cancelVibration(); 154 virtual void cancelVibration();
155 virtual void setScreenOrientationListener(
156 blink::WebScreenOrientationListener*) OVERRIDE;
153 157
154 // Disables the WebSandboxSupport implementation for testing. 158 // Disables the WebSandboxSupport implementation for testing.
155 // Tests that do not set up a full sandbox environment should call 159 // Tests that do not set up a full sandbox environment should call
156 // SetSandboxEnabledForTesting(false) _before_ creating any instances 160 // SetSandboxEnabledForTesting(false) _before_ creating any instances
157 // of this class, to ensure that we don't attempt to use sandbox-related 161 // of this class, to ensure that we don't attempt to use sandbox-related
158 // file descriptors or other resources. 162 // file descriptors or other resources.
159 // 163 //
160 // Returns the previous |enable| value. 164 // Returns the previous |enable| value.
161 static bool SetSandboxEnabledForTesting(bool enable); 165 static bool SetSandboxEnabledForTesting(bool enable);
162 166
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; 215 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_;
212 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 216 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
213 scoped_refptr<QuotaMessageFilter> quota_message_filter_; 217 scoped_refptr<QuotaMessageFilter> quota_message_filter_;
214 218
215 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; 219 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_;
216 220
217 webkit::WebCompositorSupportImpl compositor_support_; 221 webkit::WebCompositorSupportImpl compositor_support_;
218 222
219 scoped_ptr<WebCryptoImpl> web_crypto_; 223 scoped_ptr<WebCryptoImpl> web_crypto_;
220 224
225 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_;
226
221 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); 227 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl);
222 }; 228 };
223 229
224 } // namespace content 230 } // namespace content
225 231
226 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 232 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698