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

Side by Side Diff: include/views/SkWindow.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_iOS.h ('k') | src/views/unix/SkOSWindow_Unix.cpp » ('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 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkWindow_DEFINED 8 #ifndef SkWindow_DEFINED
9 #define SkWindow_DEFINED 9 #define SkWindow_DEFINED
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 const SkMatrix& getMatrix() const { return fMatrix; } 73 const SkMatrix& getMatrix() const { return fMatrix; }
74 void setMatrix(const SkMatrix&); 74 void setMatrix(const SkMatrix&);
75 void preConcat(const SkMatrix&); 75 void preConcat(const SkMatrix&);
76 void postConcat(const SkMatrix&); 76 void postConcat(const SkMatrix&);
77 77
78 virtual SkSurface* createSurface(); 78 virtual SkSurface* createSurface();
79 79
80 virtual void onPDFSaved(const char title[], const char desc[], 80 virtual void onPDFSaved(const char title[], const char desc[],
81 const char path[]) {} 81 const char path[]) {}
82 82
83 virtual void setFullscreen(bool) {}
84 virtual void setVsync(bool) {}
85 virtual void closeWindow() {}
86
87 protected: 83 protected:
88 virtual bool onEvent(const SkEvent&); 84 virtual bool onEvent(const SkEvent&);
89 virtual bool onDispatchClick(int x, int y, Click::State, void* owner, unsign ed modi); 85 virtual bool onDispatchClick(int x, int y, Click::State, void* owner, unsign ed modi);
90 // called if part of our bitmap is invalidated 86 // called if part of our bitmap is invalidated
91 virtual void onHandleInval(const SkIRect&); 87 virtual void onHandleInval(const SkIRect&);
92 virtual bool onHandleChar(SkUnichar); 88 virtual bool onHandleChar(SkUnichar);
93 virtual bool onHandleKey(SkKey); 89 virtual bool onHandleKey(SkKey);
94 virtual bool onHandleKeyUp(SkKey); 90 virtual bool onHandleKeyUp(SkKey);
95 virtual void onAddMenu(const SkOSMenu*) {}; 91 virtual void onAddMenu(const SkOSMenu*) {};
96 virtual void onUpdateMenu(const SkOSMenu*) {}; 92 virtual void onUpdateMenu(const SkOSMenu*) {};
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 #include "SkOSWindow_Android.h" 131 #include "SkOSWindow_Android.h"
136 #elif defined(SK_BUILD_FOR_UNIX) 132 #elif defined(SK_BUILD_FOR_UNIX)
137 #include "SkOSWindow_Unix.h" 133 #include "SkOSWindow_Unix.h"
138 #elif defined(SK_BUILD_FOR_SDL) 134 #elif defined(SK_BUILD_FOR_SDL)
139 #include "SkOSWindow_SDL.h" 135 #include "SkOSWindow_SDL.h"
140 #elif defined(SK_BUILD_FOR_IOS) 136 #elif defined(SK_BUILD_FOR_IOS)
141 #include "SkOSWindow_iOS.h" 137 #include "SkOSWindow_iOS.h"
142 #endif 138 #endif
143 139
144 #endif 140 #endif
OLDNEW
« no previous file with comments | « include/views/SkOSWindow_iOS.h ('k') | src/views/unix/SkOSWindow_Unix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698