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

Side by Side Diff: src/platform/window_manager/panel_bar.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/panel_bar.h" 5 #include "window_manager/panel_bar.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include <gflags/gflags.h> 9 #include <gflags/gflags.h>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "window_manager/clutter_interface.h" 12 #include "window_manager/clutter_interface.h"
13 #include "window_manager/panel.h" 13 #include "window_manager/panel.h"
14 #include "window_manager/shadow.h" 14 #include "window_manager/shadow.h"
15 #include "window_manager/stacking_manager.h" 15 #include "window_manager/stacking_manager.h"
16 #include "window_manager/window.h" 16 #include "window_manager/window.h"
17 #include "window_manager/window_manager.h" 17 #include "window_manager/window_manager.h"
18 #include "window_manager/x_connection.h" 18 #include "window_manager/x_connection.h"
19 19
20 DEFINE_string(panel_bar_image, "../assets/images/panel_bar_bg.png", 20 DEFINE_string(panel_bar_image, "../assets/images/panel_bar_bg.png",
21 "Image to use for the panel bar's background"); 21 "Image to use for the panel bar's background");
22 DEFINE_string(panel_anchor_image, "../assets/images/panel_anchor.png", 22 DEFINE_string(panel_anchor_image, "../assets/images/panel_anchor.png",
23 "Image to use for anchors on the panel bar"); 23 "Image to use for anchors on the panel bar");
24 24
25 namespace chromeos { 25 namespace window_manager {
26
27 using chromeos::NewPermanentCallback;
26 28
27 // Amount of padding to place between titlebars in the panel bar. 29 // Amount of padding to place between titlebars in the panel bar.
28 static const int kBarPadding = 1; 30 static const int kBarPadding = 1;
29 31
30 // Amount of time to take for animations. 32 // Amount of time to take for animations.
31 static const int kAnimMs = 150; 33 static const int kAnimMs = 150;
32 34
33 // Frequency with which we should update the position of dragged panels. 35 // Frequency with which we should update the position of dragged panels.
34 static const int kDraggedPanelUpdateMs = 25; 36 static const int kDraggedPanelUpdateMs = 25;
35 37
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 bar_shadow_->SetOpacity(1, kAnimMs); 931 bar_shadow_->SetOpacity(1, kAnimMs);
930 } else { 932 } else {
931 bar_actor_->MoveY(y_ + height_, kAnimMs); 933 bar_actor_->MoveY(y_ + height_, kAnimMs);
932 bar_shadow_->MoveY(y_ + height_, kAnimMs); 934 bar_shadow_->MoveY(y_ + height_, kAnimMs);
933 bar_shadow_->SetOpacity(0, kAnimMs); 935 bar_shadow_->SetOpacity(0, kAnimMs);
934 } 936 }
935 is_visible_ = visible; 937 is_visible_ = visible;
936 wm_->HandlePanelBarVisibilityChange(visible); 938 wm_->HandlePanelBarVisibilityChange(visible);
937 } 939 }
938 940
939 } // namespace chromeos 941 } // namespace window_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698