| 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> |
| 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, blink::WebHMDSensorState& int
o) { } |
| 231 |
| 232 virtual void resetVRSensor(unsigned index) { } |
| 233 |
| 234 virtual void getVRRenderTargetRects(unsigned index, |
| 235 blink::WebVRFieldOfView leftFov, |
| 236 blink::WebVRFieldOfView rightFov, |
| 237 blink::WebVRVector4* leftRect, |
| 238 blink::WebVRVector4* rightRect) { }; |
| 239 |
| 222 // History ------------------------------------------------------------- | 240 // History ------------------------------------------------------------- |
| 223 | 241 |
| 224 // Returns the hash for the given canonicalized URL for use in visited | 242 // Returns the hash for the given canonicalized URL for use in visited |
| 225 // link coloring. | 243 // link coloring. |
| 226 virtual unsigned long long visitedLinkHash( | 244 virtual unsigned long long visitedLinkHash( |
| 227 const char* canonicalURL, size_t length) { return 0; } | 245 const char* canonicalURL, size_t length) { return 0; } |
| 228 | 246 |
| 229 // Returns whether the given link hash is in the user's history. The | 247 // Returns whether the given link hash is in the user's history. The |
| 230 // hash must have been generated by calling VisitedLinkHash(). | 248 // hash must have been generated by calling VisitedLinkHash(). |
| 231 virtual bool isLinkVisited(unsigned long long linkHash) { return false; } | 249 virtual bool isLinkVisited(unsigned long long linkHash) { return false; } |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 protected: | 687 protected: |
| 670 BLINK_PLATFORM_EXPORT Platform(); | 688 BLINK_PLATFORM_EXPORT Platform(); |
| 671 virtual ~Platform() { } | 689 virtual ~Platform() { } |
| 672 | 690 |
| 673 WebThread* m_mainThread; | 691 WebThread* m_mainThread; |
| 674 }; | 692 }; |
| 675 | 693 |
| 676 } // namespace blink | 694 } // namespace blink |
| 677 | 695 |
| 678 #endif | 696 #endif |
| OLD | NEW |