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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; | 62 void OnAccelerator(uint32_t id, const ui::Event& event) override; |
| 63 void OnWmPerformMoveLoop(ui::Window* window, |
| 64 ui::mojom::MoveLoopSource source, |
| 65 const gfx::Point& cursor_location, |
| 66 const base::Callback<void(bool)>& on_done) override; |
| 67 void OnWmCancelMoveLoop(ui::Window* window) override; |
63 | 68 |
64 // Allocate a bitmap the same size as the window to draw into. | 69 // Allocate a bitmap the same size as the window to draw into. |
65 void AllocBitmap(); | 70 void AllocBitmap(); |
66 | 71 |
67 // Draws one frame, incrementing the rotation angle. | 72 // Draws one frame, incrementing the rotation angle. |
68 void DrawFrame(); | 73 void DrawFrame(); |
69 | 74 |
70 shell::Connector* connector_ = nullptr; | 75 shell::Connector* connector_ = nullptr; |
71 | 76 |
72 ui::Window* window_ = nullptr; | 77 ui::Window* window_ = nullptr; |
(...skipping 10 matching lines...) Expand all Loading... |
83 | 88 |
84 // Current rotation angle for drawing. | 89 // Current rotation angle for drawing. |
85 double angle_ = 0.0; | 90 double angle_ = 0.0; |
86 | 91 |
87 DISALLOW_COPY_AND_ASSIGN(MusDemo); | 92 DISALLOW_COPY_AND_ASSIGN(MusDemo); |
88 }; | 93 }; |
89 | 94 |
90 } // namespace ui_demo | 95 } // namespace ui_demo |
91 | 96 |
92 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_ | 97 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_ |
OLD | NEW |