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

Side by Side Diff: athena/wm/window_list_provider_impl.cc

Issue 814313002: Revert of Use template specialization to generate WindowProperty code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « athena/util/fill_layout_manager.cc ('k') | ui/aura/client/aura_constants.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "athena/wm/window_list_provider_impl.h" 5 #include "athena/wm/window_list_provider_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "athena/athena_export.h" 9 #include "athena/athena_export.h"
10 #include "athena/wm/public/window_list_provider_observer.h" 10 #include "athena/wm/public/window_list_provider_observer.h"
11 #include "ui/aura/window.h" 11 #include "ui/aura/window.h"
12 #include "ui/aura/window_property.h" 12 #include "ui/aura/window_property.h"
13 #include "ui/wm/core/transient_window_manager.h" 13 #include "ui/wm/core/transient_window_manager.h"
14 #include "ui/wm/core/window_util.h" 14 #include "ui/wm/core/window_util.h"
15 15
16 DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(ATHENA_EXPORT, bool);
17
16 namespace athena { 18 namespace athena {
17 namespace { 19 namespace {
18 20
19 // Used to keep track of which window should be managed. This is necessary 21 // Used to keep track of which window should be managed. This is necessary
20 // as the necessary informatino used in IsValidWindow (transient parent 22 // as the necessary informatino used in IsValidWindow (transient parent
21 // for example) may not available during destruction. 23 // for example) may not available during destruction.
22 DEFINE_WINDOW_PROPERTY_KEY(bool, kManagedKey, false); 24 DEFINE_WINDOW_PROPERTY_KEY(bool, kManagedKey, false);
23 25
24 } // namespace 26 } // namespace
25 27
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 if (window == container_) 129 if (window == container_)
128 return; 130 return;
129 DCHECK(IsWindowInList(window)); 131 DCHECK(IsWindowInList(window));
130 RecreateWindowList(); 132 RecreateWindowList();
131 // Inform our listeners that the stacking has been changed. 133 // Inform our listeners that the stacking has been changed.
132 FOR_EACH_OBSERVER( 134 FOR_EACH_OBSERVER(
133 WindowListProviderObserver, observers_, OnWindowStackingChangedInList()); 135 WindowListProviderObserver, observers_, OnWindowStackingChangedInList());
134 } 136 }
135 137
136 } // namespace athena 138 } // namespace athena
OLDNEW
« no previous file with comments | « athena/util/fill_layout_manager.cc ('k') | ui/aura/client/aura_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698