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

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

Issue 133943002: Gamepad API support for chrome on android (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 11 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 // Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 4 // found in the LICENSE file.
4 5
5 #ifndef CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 6 #ifndef CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 7 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
7 8
8 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
10 #include "base/platform_file.h" 11 #include "base/platform_file.h"
11 #include "content/child/webkitplatformsupport_impl.h" 12 #include "content/child/webkitplatformsupport_impl.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 virtual bool loadAudioResource( 118 virtual bool loadAudioResource(
118 blink::WebAudioBus* destination_bus, const char* audio_file_data, 119 blink::WebAudioBus* destination_bus, const char* audio_file_data,
119 size_t data_size, double sample_rate); 120 size_t data_size, double sample_rate);
120 121
121 virtual blink::WebContentDecryptionModule* createContentDecryptionModule( 122 virtual blink::WebContentDecryptionModule* createContentDecryptionModule(
122 const blink::WebString& key_system); 123 const blink::WebString& key_system);
123 virtual blink::WebMIDIAccessor* 124 virtual blink::WebMIDIAccessor*
124 createMIDIAccessor(blink::WebMIDIAccessorClient* client); 125 createMIDIAccessor(blink::WebMIDIAccessorClient* client);
125 126
126 virtual blink::WebBlobRegistry* blobRegistry(); 127 virtual blink::WebBlobRegistry* blobRegistry();
128 #if defined(OS_ANDROID)
129 virtual void resumeGamepads();
xwang 2014/01/14 03:03:22 More code in blink to call this?
SaurabhK 2014/01/15 16:57:08 I am working on blink code, I will upload that in
130 virtual void pauseGamepads();
131 #endif
127 virtual void sampleGamepads(blink::WebGamepads&); 132 virtual void sampleGamepads(blink::WebGamepads&);
128 virtual blink::WebString userAgent(const blink::WebURL& url); 133 virtual blink::WebString userAgent(const blink::WebURL& url);
129 virtual blink::WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler( 134 virtual blink::WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler(
130 blink::WebRTCPeerConnectionHandlerClient* client); 135 blink::WebRTCPeerConnectionHandlerClient* client);
131 virtual blink::WebMediaStreamCenter* createMediaStreamCenter( 136 virtual blink::WebMediaStreamCenter* createMediaStreamCenter(
132 blink::WebMediaStreamCenterClient* client); 137 blink::WebMediaStreamCenterClient* client);
133 virtual bool processMemorySizesInBytes( 138 virtual bool processMemorySizesInBytes(
134 size_t* private_bytes, size_t* shared_bytes); 139 size_t* private_bytes, size_t* shared_bytes);
135 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( 140 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D(
136 const blink::WebGraphicsContext3D::Attributes& attributes); 141 const blink::WebGraphicsContext3D::Attributes& attributes);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; 220 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_;
216 221
217 webkit::WebCompositorSupportImpl compositor_support_; 222 webkit::WebCompositorSupportImpl compositor_support_;
218 223
219 scoped_ptr<WebCryptoImpl> web_crypto_; 224 scoped_ptr<WebCryptoImpl> web_crypto_;
220 }; 225 };
221 226
222 } // namespace content 227 } // namespace content
223 228
224 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 229 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698