| 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_win_DEFINED | 8 #ifndef Window_win_DEFINED |
| 9 #define Window_win_DEFINED | 9 #define Window_win_DEFINED |
| 10 | 10 |
| 11 #include <windows.h> | 11 #include <windows.h> |
| 12 #include "../Window.h" | 12 #include "../Window.h" |
| 13 | 13 |
| 14 namespace sk_app { | 14 namespace sk_app { |
| 15 | 15 |
| 16 // for Windows |
| 17 struct ContextPlatformData_win { |
| 18 HINSTANCE fHInstance; |
| 19 HWND fHWnd; |
| 20 }; |
| 21 |
| 16 class Window_win : public Window { | 22 class Window_win : public Window { |
| 17 public: | 23 public: |
| 18 Window_win() : Window() {} | 24 Window_win() : Window() {} |
| 19 ~Window_win() override {} | 25 ~Window_win() override {} |
| 20 | 26 |
| 21 bool init(HINSTANCE instance); | 27 bool init(HINSTANCE instance); |
| 22 | 28 |
| 23 void setTitle(const char*) override; | 29 void setTitle(const char*) override; |
| 24 void show() override; | 30 void show() override; |
| 25 | 31 |
| 26 bool attach(BackEndType attachType, const DisplayParams& params) override; | 32 bool attach(BackendType attachType, const DisplayParams& params) override; |
| 27 | 33 |
| 28 void inval() override; | 34 void inval() override; |
| 29 | 35 |
| 30 private: | 36 private: |
| 31 HINSTANCE fHInstance; | 37 HINSTANCE fHInstance; |
| 32 HWND fHWnd; | 38 HWND fHWnd; |
| 33 }; | 39 }; |
| 34 | 40 |
| 35 } // namespace sk_app | 41 } // namespace sk_app |
| 36 | 42 |
| 37 #endif | 43 #endif |
| OLD | NEW |