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

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

Issue 801953002: Use template specialization to generate WindowProperty code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use namespace 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
18 namespace athena { 16 namespace athena {
19 namespace { 17 namespace {
20 18
21 // Used to keep track of which window should be managed. This is necessary 19 // Used to keep track of which window should be managed. This is necessary
22 // as the necessary informatino used in IsValidWindow (transient parent 20 // as the necessary informatino used in IsValidWindow (transient parent
23 // for example) may not available during destruction. 21 // for example) may not available during destruction.
24 DEFINE_WINDOW_PROPERTY_KEY(bool, kManagedKey, false); 22 DEFINE_WINDOW_PROPERTY_KEY(bool, kManagedKey, false);
25 23
26 } // namespace 24 } // namespace
27 25
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 if (window == container_) 127 if (window == container_)
130 return; 128 return;
131 DCHECK(IsWindowInList(window)); 129 DCHECK(IsWindowInList(window));
132 RecreateWindowList(); 130 RecreateWindowList();
133 // Inform our listeners that the stacking has been changed. 131 // Inform our listeners that the stacking has been changed.
134 FOR_EACH_OBSERVER( 132 FOR_EACH_OBSERVER(
135 WindowListProviderObserver, observers_, OnWindowStackingChangedInList()); 133 WindowListProviderObserver, observers_, OnWindowStackingChangedInList());
136 } 134 }
137 135
138 } // namespace athena 136 } // 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