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

Side by Side Diff: services/ui/ws/server_window_drawn_tracker.cc

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "components/mus/ws/server_window_drawn_tracker.h" 5 #include "services/ui/ws/server_window_drawn_tracker.h"
6 6
7 #include "components/mus/ws/server_window.h" 7 #include "services/ui/ws/server_window.h"
8 #include "components/mus/ws/server_window_drawn_tracker_observer.h" 8 #include "services/ui/ws/server_window_drawn_tracker_observer.h"
9 9
10 namespace mus { 10 namespace mus {
11 11
12 namespace ws { 12 namespace ws {
13 13
14 ServerWindowDrawnTracker::ServerWindowDrawnTracker( 14 ServerWindowDrawnTracker::ServerWindowDrawnTracker(
15 ServerWindow* window, 15 ServerWindow* window,
16 ServerWindowDrawnTrackerObserver* observer) 16 ServerWindowDrawnTrackerObserver* observer)
17 : window_(window), observer_(observer), drawn_(window->IsDrawn()) { 17 : window_(window), observer_(observer), drawn_(window->IsDrawn()) {
18 AddObservers(); 18 AddObservers();
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 } 127 }
128 128
129 void ServerWindowDrawnTracker::OnWindowVisibilityChanged(ServerWindow* window) { 129 void ServerWindowDrawnTracker::OnWindowVisibilityChanged(ServerWindow* window) {
130 const bool is_drawn = window_->IsDrawn(); 130 const bool is_drawn = window_->IsDrawn();
131 SetDrawn(is_drawn ? nullptr : window->parent(), is_drawn); 131 SetDrawn(is_drawn ? nullptr : window->parent(), is_drawn);
132 } 132 }
133 133
134 } // namespace ws 134 } // namespace ws
135 135
136 } // namespace mus 136 } // namespace mus
OLDNEW
« no previous file with comments | « services/ui/ws/server_window_drawn_tracker.h ('k') | services/ui/ws/server_window_drawn_tracker_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698