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 30 matching lines...) Expand all Loading... | |
41 #include "WebData.h" | 41 #include "WebData.h" |
42 #include "WebDeviceLightListener.h" | 42 #include "WebDeviceLightListener.h" |
43 #include "WebDeviceMotionListener.h" | 43 #include "WebDeviceMotionListener.h" |
44 #include "WebDeviceOrientationListener.h" | 44 #include "WebDeviceOrientationListener.h" |
45 #include "WebGamepadListener.h" | 45 #include "WebGamepadListener.h" |
46 #include "WebGamepads.h" | 46 #include "WebGamepads.h" |
47 #include "WebGestureDevice.h" | 47 #include "WebGestureDevice.h" |
48 #include "WebGraphicsContext3D.h" | 48 #include "WebGraphicsContext3D.h" |
49 #include "WebLocalizedString.h" | 49 #include "WebLocalizedString.h" |
50 #include "WebPlatformEventType.h" | 50 #include "WebPlatformEventType.h" |
51 #include "WebSize.h" | |
51 #include "WebSpeechSynthesizer.h" | 52 #include "WebSpeechSynthesizer.h" |
52 #include "WebStorageQuotaCallbacks.h" | 53 #include "WebStorageQuotaCallbacks.h" |
53 #include "WebStorageQuotaType.h" | 54 #include "WebStorageQuotaType.h" |
54 #include "WebString.h" | 55 #include "WebString.h" |
55 #include "WebURLError.h" | 56 #include "WebURLError.h" |
57 #include "WebVR.h" | |
56 #include "WebVector.h" | 58 #include "WebVector.h" |
57 | 59 |
60 #include <vector> | |
sof
2015/02/25 06:30:34
You can remove this now.
| |
61 | |
58 class GrContext; | 62 class GrContext; |
59 | 63 |
60 namespace blink { | 64 namespace blink { |
61 | 65 |
62 class WebAudioBus; | 66 class WebAudioBus; |
63 class WebBlobRegistry; | 67 class WebBlobRegistry; |
64 class WebBluetooth; | 68 class WebBluetooth; |
65 class WebClipboard; | 69 class WebClipboard; |
66 class WebCompositorSupport; | 70 class WebCompositorSupport; |
67 class WebConvertableToTraceFormat; | 71 class WebConvertableToTraceFormat; |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
212 | 216 |
213 // Must return non-null. | 217 // Must return non-null. |
214 virtual WebIDBFactory* idbFactory() { return 0; } | 218 virtual WebIDBFactory* idbFactory() { return 0; } |
215 | 219 |
216 | 220 |
217 // Gamepad ------------------------------------------------------------- | 221 // Gamepad ------------------------------------------------------------- |
218 | 222 |
219 virtual void sampleGamepads(WebGamepads& into) { into.length = 0; } | 223 virtual void sampleGamepads(WebGamepads& into) { into.length = 0; } |
220 | 224 |
221 | 225 |
226 // WebVR ------------------------------------------------------------- | |
227 | |
228 virtual void getVRDevices(WebVector<blink::WebVRDevice>* devices) { }; | |
229 | |
230 virtual void getHMDSensorState(unsigned index, double timeOffset, blink::Web HMDSensorState& into) { } | |
231 | |
232 virtual void resetVRSensor(unsigned index) { } | |
233 | |
234 virtual void getVRRenderTargetSize(unsigned index, | |
235 blink::WebVRFieldOfView leftFov, | |
236 blink::WebVRFieldOfView rightFov, | |
237 blink::WebSize* size) { }; | |
238 | |
222 // History ------------------------------------------------------------- | 239 // History ------------------------------------------------------------- |
223 | 240 |
224 // Returns the hash for the given canonicalized URL for use in visited | 241 // Returns the hash for the given canonicalized URL for use in visited |
225 // link coloring. | 242 // link coloring. |
226 virtual unsigned long long visitedLinkHash( | 243 virtual unsigned long long visitedLinkHash( |
227 const char* canonicalURL, size_t length) { return 0; } | 244 const char* canonicalURL, size_t length) { return 0; } |
228 | 245 |
229 // Returns whether the given link hash is in the user's history. The | 246 // Returns whether the given link hash is in the user's history. The |
230 // hash must have been generated by calling VisitedLinkHash(). | 247 // hash must have been generated by calling VisitedLinkHash(). |
231 virtual bool isLinkVisited(unsigned long long linkHash) { return false; } | 248 virtual bool isLinkVisited(unsigned long long linkHash) { return false; } |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
663 protected: | 680 protected: |
664 BLINK_PLATFORM_EXPORT Platform(); | 681 BLINK_PLATFORM_EXPORT Platform(); |
665 virtual ~Platform() { } | 682 virtual ~Platform() { } |
666 | 683 |
667 WebThread* m_mainThread; | 684 WebThread* m_mainThread; |
668 }; | 685 }; |
669 | 686 |
670 } // namespace blink | 687 } // namespace blink |
671 | 688 |
672 #endif | 689 #endif |
OLD | NEW |