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

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

Issue 8689011: Renderer reading side of gamepad (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase to HEAD Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/platform_file.h" 11 #include "base/platform_file.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/common/webkitplatformsupport_impl.h" 13 #include "content/common/webkitplatformsupport_impl.h"
14 14
15 class RendererClipboardClient; 15 class RendererClipboardClient;
16 class WebSharedWorkerRepositoryImpl; 16 class WebSharedWorkerRepositoryImpl;
17 class WebFileSystemImpl; 17 class WebFileSystemImpl;
18 18
19 namespace content {
20 class GamepadSharedMemoryReader;
21 }
22
19 namespace IPC { 23 namespace IPC {
20 class SyncMessage; 24 class SyncMessage;
21 } 25 }
22 26
23 namespace webkit_glue { 27 namespace webkit_glue {
24 class WebClipboardImpl; 28 class WebClipboardImpl;
25 } 29 }
26 30
27 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl 31 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
28 : public content::WebKitPlatformSupportImpl { 32 : public content::WebKitPlatformSupportImpl {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const WebKit::WebString& keyPath) OVERRIDE; 81 const WebKit::WebString& keyPath) OVERRIDE;
78 virtual WebKit::WebFileSystem* fileSystem() OVERRIDE; 82 virtual WebKit::WebFileSystem* fileSystem() OVERRIDE;
79 virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository() OVERRIDE; 83 virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository() OVERRIDE;
80 virtual WebKit::WebGraphicsContext3D* createGraphicsContext3D() OVERRIDE; 84 virtual WebKit::WebGraphicsContext3D* createGraphicsContext3D() OVERRIDE;
81 virtual double audioHardwareSampleRate() OVERRIDE; 85 virtual double audioHardwareSampleRate() OVERRIDE;
82 virtual size_t audioHardwareBufferSize() OVERRIDE; 86 virtual size_t audioHardwareBufferSize() OVERRIDE;
83 virtual WebKit::WebAudioDevice* createAudioDevice( 87 virtual WebKit::WebAudioDevice* createAudioDevice(
84 size_t buffer_size, unsigned channels, double sample_rate, 88 size_t buffer_size, unsigned channels, double sample_rate,
85 WebKit::WebAudioDevice::RenderCallback* callback) OVERRIDE; 89 WebKit::WebAudioDevice::RenderCallback* callback) OVERRIDE;
86 virtual WebKit::WebBlobRegistry* blobRegistry() OVERRIDE; 90 virtual WebKit::WebBlobRegistry* blobRegistry() OVERRIDE;
91 virtual void sampleGamepads(WebKit::WebGamepads&) OVERRIDE;
87 virtual WebKit::WebString userAgent(const WebKit::WebURL& url) OVERRIDE; 92 virtual WebKit::WebString userAgent(const WebKit::WebURL& url) OVERRIDE;
88 virtual void GetPlugins(bool refresh, 93 virtual void GetPlugins(bool refresh,
89 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE; 94 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE;
90 95
91 private: 96 private:
92 bool CheckPreparsedJsCachingEnabled() const; 97 bool CheckPreparsedJsCachingEnabled() const;
93 98
94 // Helper function to send synchronous message from any thread. 99 // Helper function to send synchronous message from any thread.
95 static bool SendSyncMessageFromAnyThread(IPC::SyncMessage* msg); 100 static bool SendSyncMessageFromAnyThread(IPC::SyncMessage* msg);
96 101
(...skipping 17 matching lines...) Expand all
114 119
115 // Implementation of the WebSharedWorkerRepository APIs (provides an interface 120 // Implementation of the WebSharedWorkerRepository APIs (provides an interface
116 // to WorkerService on the browser thread. 121 // to WorkerService on the browser thread.
117 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_; 122 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_;
118 123
119 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; 124 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_;
120 125
121 scoped_ptr<WebFileSystemImpl> web_file_system_; 126 scoped_ptr<WebFileSystemImpl> web_file_system_;
122 127
123 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; 128 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_;
129
130 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_;
124 }; 131 };
125 132
126 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 133 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/gamepad_shared_memory_reader.cc ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698