| 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 13 matching lines...) Expand all Loading... |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef Platform_h | 31 #ifndef Platform_h |
| 32 #define Platform_h | 32 #define Platform_h |
| 33 | 33 |
| 34 #ifdef WIN32 | |
| 35 #include <windows.h> | |
| 36 #endif | |
| 37 | |
| 38 #include "WebCommon.h" | 34 #include "WebCommon.h" |
| 39 #include "WebData.h" | 35 #include "WebData.h" |
| 40 #include "WebGestureDevice.h" | 36 #include "WebGestureDevice.h" |
| 41 #include "WebGraphicsContext3D.h" | 37 #include "WebGraphicsContext3D.h" |
| 42 #include "WebLocalizedString.h" | 38 #include "WebLocalizedString.h" |
| 43 #include "WebString.h" | 39 #include "WebString.h" |
| 44 #include "WebURLError.h" | 40 #include "WebURLError.h" |
| 45 #include "WebVector.h" | 41 #include "WebVector.h" |
| 46 | 42 |
| 47 class GrContext; | 43 class GrContext; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 73 class WebThemeEngine; | 69 class WebThemeEngine; |
| 74 class WebURL; | 70 class WebURL; |
| 75 class WebURLLoader; | 71 class WebURLLoader; |
| 76 class WebUnitTestSupport; | 72 class WebUnitTestSupport; |
| 77 struct WebLocalizedString; | 73 struct WebLocalizedString; |
| 78 struct WebSize; | 74 struct WebSize; |
| 79 | 75 |
| 80 class Platform { | 76 class Platform { |
| 81 public: | 77 public: |
| 82 // HTML5 Database ------------------------------------------------------ | 78 // HTML5 Database ------------------------------------------------------ |
| 83 | |
| 84 #ifdef WIN32 | |
| 85 typedef HANDLE FileHandle; | |
| 86 #else | |
| 87 typedef int FileHandle; | 79 typedef int FileHandle; |
| 88 #endif | |
| 89 | 80 |
| 90 BLINK_PLATFORM_EXPORT static void initialize(Platform*); | 81 BLINK_PLATFORM_EXPORT static void initialize(Platform*); |
| 91 BLINK_PLATFORM_EXPORT static void shutdown(); | 82 BLINK_PLATFORM_EXPORT static void shutdown(); |
| 92 BLINK_PLATFORM_EXPORT static Platform* current(); | 83 BLINK_PLATFORM_EXPORT static Platform* current(); |
| 93 | 84 |
| 94 // Must return non-null. | 85 // Must return non-null. |
| 95 virtual WebClipboard* clipboard() { return 0; } | 86 virtual WebClipboard* clipboard() { return 0; } |
| 96 | 87 |
| 97 // Must return non-null. | 88 // Must return non-null. |
| 98 virtual WebMimeRegistry* mimeRegistry() { return 0; } | 89 virtual WebMimeRegistry* mimeRegistry() { return 0; } |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 // with |velocity| and already scrolled |cumulativeScroll| pixels. | 382 // with |velocity| and already scrolled |cumulativeScroll| pixels. |
| 392 virtual WebGestureCurve* createFlingAnimationCurve(WebGestureDevice deviceSo
urce, const WebFloatPoint& velocity, const WebSize& cumulativeScroll) { return 0
; } | 383 virtual WebGestureCurve* createFlingAnimationCurve(WebGestureDevice deviceSo
urce, const WebFloatPoint& velocity, const WebSize& cumulativeScroll) { return 0
; } |
| 393 | 384 |
| 394 protected: | 385 protected: |
| 395 virtual ~Platform() { } | 386 virtual ~Platform() { } |
| 396 }; | 387 }; |
| 397 | 388 |
| 398 } // namespace blink | 389 } // namespace blink |
| 399 | 390 |
| 400 #endif | 391 #endif |
| OLD | NEW |