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

Side by Side Diff: public/platform/Platform.h

Issue 200783002: Gamepad API: add support for gamepadconnected and gamepaddisconnected events (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: address comments 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 20 matching lines...) Expand all
31 #ifndef Platform_h 31 #ifndef Platform_h
32 #define Platform_h 32 #define Platform_h
33 33
34 #ifdef WIN32 34 #ifdef WIN32
35 #include <windows.h> 35 #include <windows.h>
36 #endif 36 #endif
37 37
38 #include "WebAudioDevice.h" 38 #include "WebAudioDevice.h"
39 #include "WebCommon.h" 39 #include "WebCommon.h"
40 #include "WebData.h" 40 #include "WebData.h"
41 #include "WebGamepadListener.h"
41 #include "WebGamepads.h" 42 #include "WebGamepads.h"
42 #include "WebGraphicsContext3D.h" 43 #include "WebGraphicsContext3D.h"
43 #include "WebLocalizedString.h" 44 #include "WebLocalizedString.h"
44 #include "WebScreenOrientation.h" 45 #include "WebScreenOrientation.h"
45 #include "WebSpeechSynthesizer.h" 46 #include "WebSpeechSynthesizer.h"
46 #include "WebStorageQuotaCallbacks.h" 47 #include "WebStorageQuotaCallbacks.h"
47 #include "WebStorageQuotaType.h" 48 #include "WebStorageQuotaType.h"
48 #include "WebString.h" 49 #include "WebString.h"
49 #include "WebURLError.h" 50 #include "WebURLError.h"
50 #include "WebVector.h" 51 #include "WebVector.h"
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 // IndexedDB ---------------------------------------------------------- 214 // IndexedDB ----------------------------------------------------------
214 215
215 // Must return non-null. 216 // Must return non-null.
216 virtual WebIDBFactory* idbFactory() { return 0; } 217 virtual WebIDBFactory* idbFactory() { return 0; }
217 218
218 219
219 // Gamepad ------------------------------------------------------------- 220 // Gamepad -------------------------------------------------------------
220 221
221 virtual void sampleGamepads(WebGamepads& into) { into.length = 0; } 222 virtual void sampleGamepads(WebGamepads& into) { into.length = 0; }
222 223
224 virtual void setGamepadListener(WebGamepadListener*) { }
223 225
224 // History ------------------------------------------------------------- 226 // History -------------------------------------------------------------
225 227
226 // Returns the hash for the given canonicalized URL for use in visited 228 // Returns the hash for the given canonicalized URL for use in visited
227 // link coloring. 229 // link coloring.
228 virtual unsigned long long visitedLinkHash( 230 virtual unsigned long long visitedLinkHash(
229 const char* canonicalURL, size_t length) { return 0; } 231 const char* canonicalURL, size_t length) { return 0; }
230 232
231 // Returns whether the given link hash is in the user's history. The 233 // Returns whether the given link hash is in the user's history. The
232 // hash must have been generated by calling VisitedLinkHash(). 234 // hash must have been generated by calling VisitedLinkHash().
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 virtual WebDatabaseObserver* databaseObserver() { return 0; } 640 virtual WebDatabaseObserver* databaseObserver() { return 0; }
639 641
640 642
641 protected: 643 protected:
642 virtual ~Platform() { } 644 virtual ~Platform() { }
643 }; 645 };
644 646
645 } // namespace blink 647 } // namespace blink
646 648
647 #endif 649 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698