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

Side by Side Diff: services/ui/demo/mus_demo.h

Issue 2568303006: aura-mus: Implement Deactivate(). (Closed)
Patch Set: Add comment. Created 3 years, 11 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 | « mash/simple_wm/simple_wm.cc ('k') | services/ui/demo/mus_demo.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <set> 10 #include <set>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 const ui::Event& event) override; 91 const ui::Event& event) override;
92 void OnWmPerformMoveLoop(aura::Window* window, 92 void OnWmPerformMoveLoop(aura::Window* window,
93 ui::mojom::MoveLoopSource source, 93 ui::mojom::MoveLoopSource source,
94 const gfx::Point& cursor_location, 94 const gfx::Point& cursor_location,
95 const base::Callback<void(bool)>& on_done) override; 95 const base::Callback<void(bool)>& on_done) override;
96 void OnWmCancelMoveLoop(aura::Window* window) override; 96 void OnWmCancelMoveLoop(aura::Window* window) override;
97 void OnWmSetClientArea( 97 void OnWmSetClientArea(
98 aura::Window* window, 98 aura::Window* window,
99 const gfx::Insets& insets, 99 const gfx::Insets& insets,
100 const std::vector<gfx::Rect>& additional_client_areas) override; 100 const std::vector<gfx::Rect>& additional_client_areas) override;
101 bool IsWindowActive(aura::Window* window) override;
102 void OnWmDeactivateWindow(aura::Window* window) override;
101 103
102 // Draws one frame, incrementing the rotation angle. 104 // Draws one frame, incrementing the rotation angle.
103 void DrawFrame(); 105 void DrawFrame();
104 106
105 aura::Window* root_window_ = nullptr; 107 aura::Window* root_window_ = nullptr;
106 std::unique_ptr<aura::WindowTreeClient> window_tree_client_; 108 std::unique_ptr<aura::WindowTreeClient> window_tree_client_;
107 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host_; 109 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host_;
108 std::unique_ptr<ui::Gpu> gpu_; 110 std::unique_ptr<ui::Gpu> gpu_;
109 std::unique_ptr<ui::ContextFactory> context_factory_; 111 std::unique_ptr<ui::ContextFactory> context_factory_;
110 std::unique_ptr<aura::Env> env_; 112 std::unique_ptr<aura::Env> env_;
(...skipping 18 matching lines...) Expand all
129 // Last time a frame was drawn. 131 // Last time a frame was drawn.
130 base::TimeTicks last_draw_frame_time_; 132 base::TimeTicks last_draw_frame_time_;
131 133
132 DISALLOW_COPY_AND_ASSIGN(MusDemo); 134 DISALLOW_COPY_AND_ASSIGN(MusDemo);
133 }; 135 };
134 136
135 } // namespace demo 137 } // namespace demo
136 } // namespace aura 138 } // namespace aura
137 139
138 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_ 140 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_
OLDNEW
« no previous file with comments | « mash/simple_wm/simple_wm.cc ('k') | services/ui/demo/mus_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698