OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_INTERNAL_H_ | 5 #ifndef SERVICES_UI_DEMO_MUS_DEMO_INTERNAL_H_ |
6 #define SERVICES_UI_DEMO_MUS_DEMO_INTERNAL_H_ | 6 #define SERVICES_UI_DEMO_MUS_DEMO_INTERNAL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
(...skipping 25 matching lines...) Expand all Loading... |
36 bool OnWmSetProperty(aura::Window* window, | 36 bool OnWmSetProperty(aura::Window* window, |
37 const std::string& name, | 37 const std::string& name, |
38 std::unique_ptr<std::vector<uint8_t>>* new_data) final; | 38 std::unique_ptr<std::vector<uint8_t>>* new_data) final; |
39 void OnWmSetModalType(aura::Window* window, ModalType type) final; | 39 void OnWmSetModalType(aura::Window* window, ModalType type) final; |
40 void OnWmSetCanFocus(aura::Window* window, bool can_focus) final; | 40 void OnWmSetCanFocus(aura::Window* window, bool can_focus) final; |
41 aura::Window* OnWmCreateTopLevelWindow( | 41 aura::Window* OnWmCreateTopLevelWindow( |
42 ui::mojom::WindowType window_type, | 42 ui::mojom::WindowType window_type, |
43 std::map<std::string, std::vector<uint8_t>>* properties) final; | 43 std::map<std::string, std::vector<uint8_t>>* properties) final; |
44 void OnWmClientJankinessChanged(const std::set<aura::Window*>& client_windows, | 44 void OnWmClientJankinessChanged(const std::set<aura::Window*>& client_windows, |
45 bool janky) final; | 45 bool janky) final; |
| 46 void OnWmBuildDragImage(const gfx::Point& cursor_location, |
| 47 const SkBitmap& drag_image, |
| 48 const gfx::Vector2d& drag_image_offset, |
| 49 ui::mojom::DragEventSource source) final; |
| 50 void OnWmMoveDragImage(const gfx::Point& cursor_location) final; |
| 51 void OnWmDestroyDragImage() final; |
46 void OnWmWillCreateDisplay(const display::Display& display) final; | 52 void OnWmWillCreateDisplay(const display::Display& display) final; |
47 void OnWmNewDisplay(std::unique_ptr<aura::WindowTreeHostMus> window_tree_host, | 53 void OnWmNewDisplay(std::unique_ptr<aura::WindowTreeHostMus> window_tree_host, |
48 const display::Display& display) final; | 54 const display::Display& display) final; |
49 void OnWmDisplayRemoved(aura::WindowTreeHostMus* window_tree_host) final; | 55 void OnWmDisplayRemoved(aura::WindowTreeHostMus* window_tree_host) final; |
50 void OnWmDisplayModified(const display::Display& display) final; | 56 void OnWmDisplayModified(const display::Display& display) final; |
51 ui::mojom::EventResult OnAccelerator( | 57 ui::mojom::EventResult OnAccelerator( |
52 uint32_t id, | 58 uint32_t id, |
53 const ui::Event& event, | 59 const ui::Event& event, |
54 std::unordered_map<std::string, std::vector<uint8_t>>* properties) final; | 60 std::unordered_map<std::string, std::vector<uint8_t>>* properties) final; |
55 void OnWmPerformMoveLoop(aura::Window* window, | 61 void OnWmPerformMoveLoop(aura::Window* window, |
56 ui::mojom::MoveLoopSource source, | 62 ui::mojom::MoveLoopSource source, |
57 const gfx::Point& cursor_location, | 63 const gfx::Point& cursor_location, |
58 const base::Callback<void(bool)>& on_done) final; | 64 const base::Callback<void(bool)>& on_done) final; |
59 void OnWmCancelMoveLoop(aura::Window* window) final; | 65 void OnWmCancelMoveLoop(aura::Window* window) final; |
60 void OnWmSetClientArea( | 66 void OnWmSetClientArea( |
61 aura::Window* window, | 67 aura::Window* window, |
62 const gfx::Insets& insets, | 68 const gfx::Insets& insets, |
63 const std::vector<gfx::Rect>& additional_client_areas) final; | 69 const std::vector<gfx::Rect>& additional_client_areas) final; |
64 bool IsWindowActive(aura::Window* window) final; | 70 bool IsWindowActive(aura::Window* window) final; |
65 void OnWmDeactivateWindow(aura::Window* window) final; | 71 void OnWmDeactivateWindow(aura::Window* window) final; |
66 | 72 |
67 DISALLOW_COPY_AND_ASSIGN(MusDemoInternal); | 73 DISALLOW_COPY_AND_ASSIGN(MusDemoInternal); |
68 }; | 74 }; |
69 | 75 |
70 } // namespace demo | 76 } // namespace demo |
71 } // namespace ui | 77 } // namespace ui |
72 | 78 |
73 #endif // SERVICES_UI_DEMO_MUS_DEMO_INTERNAL_H_ | 79 #endif // SERVICES_UI_DEMO_MUS_DEMO_INTERNAL_H_ |
OLD | NEW |