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

Side by Side Diff: tools/vulkan/win/Window_win.h

Issue 1865553005: Clean up input handling in VulkanViewer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rename resize params Created 4 years, 8 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/vulkan/viewer/VulkanViewer.cpp ('k') | tools/vulkan/win/Window_win.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_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 class Window_win : public Window { 14 class Window_win : public Window {
15 public: 15 public:
16 Window_win() : Window() {} 16 Window_win() : Window() {}
17 ~Window_win() override {} 17 ~Window_win() override {}
18 18
19 bool init(HINSTANCE instance); 19 bool init(HINSTANCE instance);
20 20
21 void setTitle(const char*) override; 21 void setTitle(const char*) override;
22 void show() override; 22 void show() override;
23 23
24 // event callbacks
25 bool onKeyboard(UINT nChar, bool bKeyDown, bool bAltDown);
26 bool onMouse(bool bLeftButtonDown, bool bRightButtonDown, bool bMiddleButton Down,
27 bool bSideButton1Down, bool bSideButton2Down, int nMouseWheelDe lta,
28 int xPos, int yPos);
29
30 bool attach(BackEndTypes attachType, int msaaSampleCount, AttachmentInfo*) o verride; 24 bool attach(BackEndTypes attachType, int msaaSampleCount, AttachmentInfo*) o verride;
31 25
32 private: 26 private:
33 HINSTANCE fHInstance; 27 HINSTANCE fHInstance;
34 HWND fHWnd; 28 HWND fHWnd;
35 }; 29 };
36 30
37 #endif 31 #endif
OLDNEW
« no previous file with comments | « tools/vulkan/viewer/VulkanViewer.cpp ('k') | tools/vulkan/win/Window_win.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698