OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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*) { } | |
219 | 221 |
abarth-chromium
2014/03/20 20:10:09
Please keep two blank lines between sections.
| |
220 // History ------------------------------------------------------------- | 222 // History ------------------------------------------------------------- |
221 | 223 |
222 // Returns the hash for the given canonicalized URL for use in visited | 224 // Returns the hash for the given canonicalized URL for use in visited |
223 // link coloring. | 225 // link coloring. |
224 virtual unsigned long long visitedLinkHash( | 226 virtual unsigned long long visitedLinkHash( |
225 const char* canonicalURL, size_t length) { return 0; } | 227 const char* canonicalURL, size_t length) { return 0; } |
226 | 228 |
227 // Returns whether the given link hash is in the user's history. The | 229 // Returns whether the given link hash is in the user's history. The |
228 // hash must have been generated by calling VisitedLinkHash(). | 230 // hash must have been generated by calling VisitedLinkHash(). |
229 virtual bool isLinkVisited(unsigned long long linkHash) { return false; } | 231 virtual bool isLinkVisited(unsigned long long linkHash) { return false; } |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
636 virtual WebDatabaseObserver* databaseObserver() { return 0; } | 638 virtual WebDatabaseObserver* databaseObserver() { return 0; } |
637 | 639 |
638 | 640 |
639 protected: | 641 protected: |
640 virtual ~Platform() { } | 642 virtual ~Platform() { } |
641 }; | 643 }; |
642 | 644 |
643 } // namespace blink | 645 } // namespace blink |
644 | 646 |
645 #endif | 647 #endif |
OLD | NEW |