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

Side by Side Diff: tools/viewer/sk_app/Window.h

Issue 1944413005: More refactoring for Viewer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix up Android Created 4 years, 7 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 | « tools/viewer/sk_app/VulkanWindowContext.cpp ('k') | tools/viewer/sk_app/Window.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 2016 Google Inc. 2 * Copyright 2016 Google Inc.
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 Window_DEFINED 8 #ifndef Window_DEFINED
9 #define Window_DEFINED 9 #define Window_DEFINED
10 10
11 #include "SkTypes.h" 11 #include "SkTypes.h"
12 #include "SkRect.h" 12 #include "SkRect.h"
13 13
14 class SkCanvas; 14 class SkCanvas;
15 class VulkanTestContext;
16 15
17 namespace sk_app { 16 namespace sk_app {
18 17
18 class WindowContext;
19
19 class Window { 20 class Window {
20 public: 21 public:
21 static Window* CreateNativeWindow(void* platformData); 22 static Window* CreateNativeWindow(void* platformData);
22 23
23 virtual ~Window() {}; 24 virtual ~Window() {};
24 25
25 virtual void setTitle(const char*) = 0; 26 virtual void setTitle(const char*) = 0;
26 virtual void show() = 0; 27 virtual void show() = 0;
27 virtual void inval() = 0; 28 virtual void inval() = 0;
28 29
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 137
137 OnCharFunc fCharFunc; 138 OnCharFunc fCharFunc;
138 void* fCharUserData; 139 void* fCharUserData;
139 OnKeyFunc fKeyFunc; 140 OnKeyFunc fKeyFunc;
140 void* fKeyUserData; 141 void* fKeyUserData;
141 OnMouseFunc fMouseFunc; 142 OnMouseFunc fMouseFunc;
142 void* fMouseUserData; 143 void* fMouseUserData;
143 OnPaintFunc fPaintFunc; 144 OnPaintFunc fPaintFunc;
144 void* fPaintUserData; 145 void* fPaintUserData;
145 146
146 VulkanTestContext* fTestContext; 147 WindowContext* fWindowContext;
147 }; 148 };
148 149
149 } // namespace sk_app 150 } // namespace sk_app
150 #endif 151 #endif
OLDNEW
« no previous file with comments | « tools/viewer/sk_app/VulkanWindowContext.cpp ('k') | tools/viewer/sk_app/Window.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698