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

Side by Side Diff: src/platform/window_manager/layout_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/layout_manager.h" 5 #include "window_manager/layout_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <tr1/memory> 9 #include <tr1/memory>
10 extern "C" { 10 extern "C" {
(...skipping 13 matching lines...) Expand all
24 #include "window_manager/window.h" 24 #include "window_manager/window.h"
25 #include "window_manager/window_manager.h" 25 #include "window_manager/window_manager.h"
26 #include "window_manager/x_connection.h" 26 #include "window_manager/x_connection.h"
27 27
28 DEFINE_bool(lm_honor_window_size_hints, false, 28 DEFINE_bool(lm_honor_window_size_hints, false,
29 "When maximizing a client window, constrain its size according to " 29 "When maximizing a client window, constrain its size according to "
30 "the size hints that the client app has provided (e.g. max size, " 30 "the size hints that the client app has provided (e.g. max size, "
31 "size increment, etc.) instead of automatically making it fill the " 31 "size increment, etc.) instead of automatically making it fill the "
32 "screen"); 32 "screen");
33 33
34 namespace chromeos { 34 namespace window_manager {
35 35
36 using std::map; 36 using std::map;
37 using std::vector; 37 using std::vector;
38 using std::pair; 38 using std::pair;
39 using std::make_pair; 39 using std::make_pair;
40 using std::list; 40 using std::list;
41 using std::tr1::shared_ptr; 41 using std::tr1::shared_ptr;
42 42
43 using chromeos::NewPermanentCallback;
44
43 // Amount of padding that should be used between windows in overview mode. 45 // Amount of padding that should be used between windows in overview mode.
44 static const int kWindowPadding = 10; 46 static const int kWindowPadding = 10;
45 47
46 // Padding between the create browser window and the bottom of the screen. 48 // Padding between the create browser window and the bottom of the screen.
47 static const int kCreateBrowserWindowVerticalPadding = 10; 49 static const int kCreateBrowserWindowVerticalPadding = 10;
48 50
49 // Amount of vertical padding that should be used between tab summary 51 // Amount of vertical padding that should be used between tab summary
50 // windows and overview windows. 52 // windows and overview windows.
51 static const int kTabSummaryPadding = 40; 53 static const int kTabSummaryPadding = 40;
52 54
(...skipping 1640 matching lines...) Expand 10 before | Expand all | Expand 10 after
1693 wm_->wm_ipc()->SendMessage(toplevel->win()->xid(), msg); 1695 wm_->wm_ipc()->SendMessage(toplevel->win()->xid(), msg);
1694 } 1696 }
1695 1697
1696 void LayoutManager::SendDeleteRequestToActiveWindow() { 1698 void LayoutManager::SendDeleteRequestToActiveWindow() {
1697 // TODO: If there's a focused transient window, the message should get 1699 // TODO: If there's a focused transient window, the message should get
1698 // sent to it instead. 1700 // sent to it instead.
1699 if (mode_ == MODE_ACTIVE && active_toplevel_) 1701 if (mode_ == MODE_ACTIVE && active_toplevel_)
1700 active_toplevel_->win()->SendDeleteRequest(wm_->GetCurrentTimeFromServer()); 1702 active_toplevel_->win()->SendDeleteRequest(wm_->GetCurrentTimeFromServer());
1701 } 1703 }
1702 1704
1703 } // namespace chromeos 1705 } // namespace window_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698