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

Side by Side Diff: include/views/SkOSWindow_Mac.h

Issue 1181723006: Move closeWindow()/setFullscreen()/setVSynv() from SkWindow to SkOSWindow (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 months 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 | « include/views/SkOSWindow_Android.h ('k') | include/views/SkOSWindow_Unix.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 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef SkOSWindow_MacCocoa_DEFINED 9 #ifndef SkOSWindow_MacCocoa_DEFINED
10 #define SkOSWindow_MacCocoa_DEFINED 10 #define SkOSWindow_MacCocoa_DEFINED
(...skipping 12 matching lines...) Expand all
23 kNone_BackEndType, 23 kNone_BackEndType,
24 #if SK_SUPPORT_GPU 24 #if SK_SUPPORT_GPU
25 kNativeGL_BackEndType, 25 kNativeGL_BackEndType,
26 #endif 26 #endif
27 }; 27 };
28 28
29 void detach(); 29 void detach();
30 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInf o*); 30 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInf o*);
31 void present(); 31 void present();
32 32
33 bool makeFullscreen() { return false; }
34 void closeWindow() { /* Not impl yet */ }
35 void setVsync(bool) { /* Not impl yet */ }
36
33 protected: 37 protected:
34 // overrides from SkEventSink 38 // overrides from SkEventSink
35 virtual bool onEvent(const SkEvent& evt); 39 virtual bool onEvent(const SkEvent& evt);
36 // overrides from SkWindow 40 // overrides from SkWindow
37 virtual void onHandleInval(const SkIRect&); 41 virtual void onHandleInval(const SkIRect&);
38 // overrides from SkView 42 // overrides from SkView
39 virtual void onAddMenu(const SkOSMenu*); 43 virtual void onAddMenu(const SkOSMenu*);
40 virtual void onUpdateMenu(const SkOSMenu*); 44 virtual void onUpdateMenu(const SkOSMenu*);
41 virtual void onSetTitle(const char[]); 45 virtual void onSetTitle(const char[]);
42 46
43 private: 47 private:
44 void* fHWND; 48 void* fHWND;
45 bool fInvalEventIsPending; 49 bool fInvalEventIsPending;
46 void* fNotifier; 50 void* fNotifier;
47 #if SK_SUPPORT_GPU 51 #if SK_SUPPORT_GPU
48 void* fGLContext; 52 void* fGLContext;
49 #endif 53 #endif
50 typedef SkWindow INHERITED; 54 typedef SkWindow INHERITED;
51 }; 55 };
52 56
53 #endif 57 #endif
OLDNEW
« no previous file with comments | « include/views/SkOSWindow_Android.h ('k') | include/views/SkOSWindow_Unix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698