OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SERVICES_UI_DEMO_MUS_DEMO_H_ | 5 #ifndef SERVICES_UI_DEMO_MUS_DEMO_H_ |
6 #define SERVICES_UI_DEMO_MUS_DEMO_H_ | 6 #define SERVICES_UI_DEMO_MUS_DEMO_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 bool OnWmSetProperty( | 52 bool OnWmSetProperty( |
53 ui::Window* window, | 53 ui::Window* window, |
54 const std::string& name, | 54 const std::string& name, |
55 std::unique_ptr<std::vector<uint8_t>>* new_data) override; | 55 std::unique_ptr<std::vector<uint8_t>>* new_data) override; |
56 ui::Window* OnWmCreateTopLevelWindow( | 56 ui::Window* OnWmCreateTopLevelWindow( |
57 std::map<std::string, std::vector<uint8_t>>* properties) override; | 57 std::map<std::string, std::vector<uint8_t>>* properties) override; |
58 void OnWmClientJankinessChanged(const std::set<ui::Window*>& client_windows, | 58 void OnWmClientJankinessChanged(const std::set<ui::Window*>& client_windows, |
59 bool janky) override; | 59 bool janky) override; |
60 void OnWmNewDisplay(ui::Window* window, | 60 void OnWmNewDisplay(ui::Window* window, |
61 const display::Display& display) override; | 61 const display::Display& display) override; |
62 void OnAccelerator(uint32_t id, const ui::Event& event) override; | |
63 void OnWmPerformMoveLoop(ui::Window* window, | 62 void OnWmPerformMoveLoop(ui::Window* window, |
64 ui::mojom::MoveLoopSource source, | 63 ui::mojom::MoveLoopSource source, |
65 const gfx::Point& cursor_location, | 64 const gfx::Point& cursor_location, |
66 const base::Callback<void(bool)>& on_done) override; | 65 const base::Callback<void(bool)>& on_done) override; |
67 void OnWmCancelMoveLoop(ui::Window* window) override; | 66 void OnWmCancelMoveLoop(ui::Window* window) override; |
68 | 67 |
69 // Allocate a bitmap the same size as the window to draw into. | 68 // Allocate a bitmap the same size as the window to draw into. |
70 void AllocBitmap(); | 69 void AllocBitmap(); |
71 | 70 |
72 // Draws one frame, incrementing the rotation angle. | 71 // Draws one frame, incrementing the rotation angle. |
(...skipping 15 matching lines...) Expand all Loading... |
88 | 87 |
89 // Current rotation angle for drawing. | 88 // Current rotation angle for drawing. |
90 double angle_ = 0.0; | 89 double angle_ = 0.0; |
91 | 90 |
92 DISALLOW_COPY_AND_ASSIGN(MusDemo); | 91 DISALLOW_COPY_AND_ASSIGN(MusDemo); |
93 }; | 92 }; |
94 | 93 |
95 } // namespace ui_demo | 94 } // namespace ui_demo |
96 | 95 |
97 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_ | 96 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_ |
OLD | NEW |