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

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: layout fix: webexposed/global-constructors-listing 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 | « Source/web/FrameLoaderClientImpl.cpp ('k') | public/platform/WebGamepadListener.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 // IndexedDB ---------------------------------------------------------- 210 // IndexedDB ----------------------------------------------------------
210 211
211 // Must return non-null. 212 // Must return non-null.
212 virtual WebIDBFactory* idbFactory() { return 0; } 213 virtual WebIDBFactory* idbFactory() { return 0; }
213 214
214 215
215 // Gamepad ------------------------------------------------------------- 216 // Gamepad -------------------------------------------------------------
216 217
217 virtual void sampleGamepads(WebGamepads& into) { into.length = 0; } 218 virtual void sampleGamepads(WebGamepads& into) { into.length = 0; }
218 219
220 virtual void setGamepadListener(WebGamepadListener*) { }
221
219 222
220 // History ------------------------------------------------------------- 223 // History -------------------------------------------------------------
221 224
222 // Returns the hash for the given canonicalized URL for use in visited 225 // Returns the hash for the given canonicalized URL for use in visited
223 // link coloring. 226 // link coloring.
224 virtual unsigned long long visitedLinkHash( 227 virtual unsigned long long visitedLinkHash(
225 const char* canonicalURL, size_t length) { return 0; } 228 const char* canonicalURL, size_t length) { return 0; }
226 229
227 // Returns whether the given link hash is in the user's history. The 230 // Returns whether the given link hash is in the user's history. The
228 // hash must have been generated by calling VisitedLinkHash(). 231 // hash must have been generated by calling VisitedLinkHash().
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 virtual WebDatabaseObserver* databaseObserver() { return 0; } 639 virtual WebDatabaseObserver* databaseObserver() { return 0; }
637 640
638 641
639 protected: 642 protected:
640 virtual ~Platform() { } 643 virtual ~Platform() { }
641 }; 644 };
642 645
643 } // namespace blink 646 } // namespace blink
644 647
645 #endif 648 #endif
OLDNEW
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | public/platform/WebGamepadListener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698