OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef SERVICES_UI_DEMO_MUS_DEMO_INTERNAL_H_ | |
6 #define SERVICES_UI_DEMO_MUS_DEMO_INTERNAL_H_ | |
7 | |
8 #include "services/ui/demo/mus_demo.h" | |
kylechar
2017/02/14 18:40:11
Missing imports for WindowManagerDelegate and othe
fwang
2017/02/15 13:49:26
Done.
| |
9 | |
10 namespace ui { | |
11 namespace demo { | |
12 | |
13 class MusDemoInternal : public MusDemo, public aura::WindowManagerDelegate { | |
14 public: | |
15 MusDemoInternal(); | |
kylechar
2017/02/14 18:40:11
You're missing a destructor override.
fwang
2017/02/15 13:49:26
Done.
| |
16 | |
17 private: | |
18 void OnStartImpl() override; | |
19 | |
20 // aura::WindowManagerDelegate: | |
21 void SetWindowManagerClient(aura::WindowManagerClient* client) override; | |
22 bool OnWmSetBounds(aura::Window* window, gfx::Rect* bounds) override; | |
23 bool OnWmSetProperty( | |
24 aura::Window* window, | |
25 const std::string& name, | |
26 std::unique_ptr<std::vector<uint8_t>>* new_data) override; | |
27 void OnWmSetCanFocus(aura::Window* window, bool can_focus) override; | |
28 aura::Window* OnWmCreateTopLevelWindow( | |
29 ui::mojom::WindowType window_type, | |
30 std::map<std::string, std::vector<uint8_t>>* properties) override; | |
31 void OnWmClientJankinessChanged(const std::set<aura::Window*>& client_windows, | |
32 bool janky) override; | |
33 void OnWmWillCreateDisplay(const display::Display& display) override; | |
34 void OnWmNewDisplay(std::unique_ptr<aura::WindowTreeHostMus> window_tree_host, | |
35 const display::Display& display) override; | |
36 void OnWmDisplayRemoved(aura::WindowTreeHostMus* window_tree_host) override; | |
37 void OnWmDisplayModified(const display::Display& display) override; | |
38 ui::mojom::EventResult OnAccelerator(uint32_t id, | |
39 const ui::Event& event) override; | |
40 void OnWmPerformMoveLoop(aura::Window* window, | |
41 ui::mojom::MoveLoopSource source, | |
42 const gfx::Point& cursor_location, | |
43 const base::Callback<void(bool)>& on_done) override; | |
44 void OnWmCancelMoveLoop(aura::Window* window) override; | |
45 void OnWmSetClientArea( | |
46 aura::Window* window, | |
47 const gfx::Insets& insets, | |
48 const std::vector<gfx::Rect>& additional_client_areas) override; | |
49 bool IsWindowActive(aura::Window* window) override; | |
50 void OnWmDeactivateWindow(aura::Window* window) override; | |
51 | |
52 DISALLOW_COPY_AND_ASSIGN(MusDemoInternal); | |
53 }; | |
54 | |
55 } // namespace demo | |
56 } // namespace aura | |
57 | |
58 #endif // SERVICES_UI_DEMO_MUS_DEMO_INTERNAL_H_ | |
OLD | NEW |