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

Side by Side Diff: src/platform/window_manager/stacking_manager.cc

Issue 501116: wm: Update namespace and header define guards. (Closed)
Patch Set: move using directive inside of namespace for consistency Created 11 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
OLDNEW
1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium OS 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 "window_manager/stacking_manager.h" 5 #include "window_manager/stacking_manager.h"
6 6
7 #include "window_manager/util.h" 7 #include "window_manager/util.h"
8 #include "window_manager/window.h" 8 #include "window_manager/window.h"
9 #include "window_manager/x_connection.h" 9 #include "window_manager/x_connection.h"
10 10
11 using std::map; 11 using std::map;
12 using std::set; 12 using std::set;
13 using std::tr1::shared_ptr; 13 using std::tr1::shared_ptr;
14 14
15 namespace chromeos { 15 namespace window_manager {
16 16
17 StackingManager::StackingManager(XConnection* xconn, ClutterInterface* clutter) 17 StackingManager::StackingManager(XConnection* xconn, ClutterInterface* clutter)
18 : xconn_(xconn) { 18 : xconn_(xconn) {
19 XWindow root = xconn_->GetRootWindow(); 19 XWindow root = xconn_->GetRootWindow();
20 20
21 for (int i = kNumLayers - 1; i >= 0; --i) { 21 for (int i = kNumLayers - 1; i >= 0; --i) {
22 Layer layer = static_cast<Layer>(i); 22 Layer layer = static_cast<Layer>(i);
23 23
24 XWindow xid = xconn_->CreateWindow(root, -1, -1, 1, 1, true, true, 0); 24 XWindow xid = xconn_->CreateWindow(root, -1, -1, 1, 1, true, true, 0);
25 layer_to_xid_[layer] = xid; 25 layer_to_xid_[layer] = xid;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 case LAYER_DRAGGED_EXPANDED_PANEL: return "dragged expanded panel layer"; 92 case LAYER_DRAGGED_EXPANDED_PANEL: return "dragged expanded panel layer";
93 case LAYER_EXPANDED_PANEL: return "expanded panel layer"; 93 case LAYER_EXPANDED_PANEL: return "expanded panel layer";
94 case LAYER_FLOATING_TAB: return "floating tab layer"; 94 case LAYER_FLOATING_TAB: return "floating tab layer";
95 case LAYER_TAB_SUMMARY: return "tab summary layer"; 95 case LAYER_TAB_SUMMARY: return "tab summary layer";
96 case LAYER_TOPLEVEL_WINDOW: return "toplevel window layer"; 96 case LAYER_TOPLEVEL_WINDOW: return "toplevel window layer";
97 case LAYER_BACKGROUND: return "background layer"; 97 case LAYER_BACKGROUND: return "background layer";
98 default: return "unknown layer"; 98 default: return "unknown layer";
99 } 99 }
100 } 100 }
101 101
102 } // namespace chromeos 102 } // namespace window_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698