| 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 { |
| 15 |
| 14 class Window_win : public Window { | 16 class Window_win : public Window { |
| 15 public: | 17 public: |
| 16 Window_win() : Window() {} | 18 Window_win() : Window() {} |
| 17 ~Window_win() override {} | 19 ~Window_win() override {} |
| 18 | 20 |
| 19 bool init(HINSTANCE instance); | 21 bool init(HINSTANCE instance); |
| 20 | 22 |
| 21 void setTitle(const char*) override; | 23 void setTitle(const char*) override; |
| 22 void show() override; | 24 void show() override; |
| 23 | 25 |
| 24 bool attach(BackEndType attachType, int msaaSampleCount) override; | 26 bool attach(BackEndType attachType, int msaaSampleCount) override; |
| 25 | 27 |
| 26 void inval() override; | 28 void inval() override; |
| 27 | 29 |
| 28 private: | 30 private: |
| 29 HINSTANCE fHInstance; | 31 HINSTANCE fHInstance; |
| 30 HWND fHWnd; | 32 HWND fHWnd; |
| 31 }; | 33 }; |
| 32 | 34 |
| 35 } // namespace sk_app |
| 36 |
| 33 #endif | 37 #endif |
| OLD | NEW |