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

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

Issue 722723003: Re-land 714393002 after fixing android build. (Closed) Base URL: git@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
« no previous file with comments | « sky/engine/platform/weborigin/KURL.cpp ('k') | sky/engine/public/platform/WebCommon.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
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
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
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
OLDNEW
« no previous file with comments | « sky/engine/platform/weborigin/KURL.cpp ('k') | sky/engine/public/platform/WebCommon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698