| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |