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

Side by Side Diff: sky/engine/public/platform/Platform.h

Issue 719063002: Revert "Remove support for MSVC" (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
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 13 matching lines...) Expand all
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
34 #include "WebCommon.h" 38 #include "WebCommon.h"
35 #include "WebData.h" 39 #include "WebData.h"
36 #include "WebGestureDevice.h" 40 #include "WebGestureDevice.h"
37 #include "WebGraphicsContext3D.h" 41 #include "WebGraphicsContext3D.h"
38 #include "WebLocalizedString.h" 42 #include "WebLocalizedString.h"
39 #include "WebString.h" 43 #include "WebString.h"
40 #include "WebURLError.h" 44 #include "WebURLError.h"
41 #include "WebVector.h" 45 #include "WebVector.h"
42 46
43 class GrContext; 47 class GrContext;
(...skipping 25 matching lines...) Expand all
69 class WebThemeEngine; 73 class WebThemeEngine;
70 class WebURL; 74 class WebURL;
71 class WebURLLoader; 75 class WebURLLoader;
72 class WebUnitTestSupport; 76 class WebUnitTestSupport;
73 struct WebLocalizedString; 77 struct WebLocalizedString;
74 struct WebSize; 78 struct WebSize;
75 79
76 class Platform { 80 class Platform {
77 public: 81 public:
78 // HTML5 Database ------------------------------------------------------ 82 // HTML5 Database ------------------------------------------------------
83
84 #ifdef WIN32
85 typedef HANDLE FileHandle;
86 #else
79 typedef int FileHandle; 87 typedef int FileHandle;
88 #endif
80 89
81 BLINK_PLATFORM_EXPORT static void initialize(Platform*); 90 BLINK_PLATFORM_EXPORT static void initialize(Platform*);
82 BLINK_PLATFORM_EXPORT static void shutdown(); 91 BLINK_PLATFORM_EXPORT static void shutdown();
83 BLINK_PLATFORM_EXPORT static Platform* current(); 92 BLINK_PLATFORM_EXPORT static Platform* current();
84 93
85 // Must return non-null. 94 // Must return non-null.
86 virtual WebClipboard* clipboard() { return 0; } 95 virtual WebClipboard* clipboard() { return 0; }
87 96
88 // Must return non-null. 97 // Must return non-null.
89 virtual WebMimeRegistry* mimeRegistry() { return 0; } 98 virtual WebMimeRegistry* mimeRegistry() { return 0; }
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 // with |velocity| and already scrolled |cumulativeScroll| pixels. 391 // with |velocity| and already scrolled |cumulativeScroll| pixels.
383 virtual WebGestureCurve* createFlingAnimationCurve(WebGestureDevice deviceSo urce, const WebFloatPoint& velocity, const WebSize& cumulativeScroll) { return 0 ; } 392 virtual WebGestureCurve* createFlingAnimationCurve(WebGestureDevice deviceSo urce, const WebFloatPoint& velocity, const WebSize& cumulativeScroll) { return 0 ; }
384 393
385 protected: 394 protected:
386 virtual ~Platform() { } 395 virtual ~Platform() { }
387 }; 396 };
388 397
389 } // namespace blink 398 } // namespace blink
390 399
391 #endif 400 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698