| 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; | 15 class VulkanTestContext; |
| 16 | 16 |
| 17 namespace sk_app { |
| 18 |
| 17 class Window { | 19 class Window { |
| 18 public: | 20 public: |
| 19 static Window* CreateNativeWindow(void* platformData); | 21 static Window* CreateNativeWindow(void* platformData); |
| 20 | 22 |
| 21 virtual ~Window() {}; | 23 virtual ~Window() {}; |
| 22 | 24 |
| 23 virtual void setTitle(const char*) = 0; | 25 virtual void setTitle(const char*) = 0; |
| 24 virtual void show() = 0; | 26 virtual void show() = 0; |
| 25 virtual void inval() = 0; | 27 virtual void inval() = 0; |
| 26 | 28 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 OnKeyFunc fKeyFunc; | 139 OnKeyFunc fKeyFunc; |
| 138 void* fKeyUserData; | 140 void* fKeyUserData; |
| 139 OnMouseFunc fMouseFunc; | 141 OnMouseFunc fMouseFunc; |
| 140 void* fMouseUserData; | 142 void* fMouseUserData; |
| 141 OnPaintFunc fPaintFunc; | 143 OnPaintFunc fPaintFunc; |
| 142 void* fPaintUserData; | 144 void* fPaintUserData; |
| 143 | 145 |
| 144 VulkanTestContext* fTestContext; | 146 VulkanTestContext* fTestContext; |
| 145 }; | 147 }; |
| 146 | 148 |
| 147 | 149 } // namespace sk_app |
| 148 #endif | 150 #endif |
| OLD | NEW |