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

Side by Side Diff: ash/system/status_area_widget_delegate.cc

Issue 1914093002: Refactors DockedWindowLayoutManager in terms of ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nuke_aura_window
Patch Set: comment Created 4 years, 8 months 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 | « ash/system/status_area_widget_delegate.h ('k') | ash/system/toast/toast_manager_unittest.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ash/system/status_area_widget_delegate.h" 5 #include "ash/system/status_area_widget_delegate.h"
6 6
7 #include "ash/ash_export.h" 7 #include "ash/ash_export.h"
8 #include "ash/ash_switches.h" 8 #include "ash/ash_switches.h"
9 #include "ash/focus_cycler.h" 9 #include "ash/focus_cycler.h"
10 #include "ash/shelf/shelf_util.h" 10 #include "ash/shelf/shelf_util.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 private: 43 private:
44 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidgetDelegateAnimationSettings); 44 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidgetDelegateAnimationSettings);
45 }; 45 };
46 46
47 } // namespace 47 } // namespace
48 48
49 namespace ash { 49 namespace ash {
50 50
51 StatusAreaWidgetDelegate::StatusAreaWidgetDelegate() 51 StatusAreaWidgetDelegate::StatusAreaWidgetDelegate()
52 : focus_cycler_for_testing_(NULL), 52 : focus_cycler_for_testing_(nullptr),
53 alignment_(SHELF_ALIGNMENT_BOTTOM) { 53 alignment_(wm::SHELF_ALIGNMENT_BOTTOM) {
54 // Allow the launcher to surrender the focus to another window upon 54 // Allow the launcher to surrender the focus to another window upon
55 // navigation completion by the user. 55 // navigation completion by the user.
56 set_allow_deactivate_on_esc(true); 56 set_allow_deactivate_on_esc(true);
57 SetPaintToLayer(true); 57 SetPaintToLayer(true);
58 layer()->SetFillsBoundsOpaquely(false); 58 layer()->SetFillsBoundsOpaquely(false);
59 } 59 }
60 60
61 StatusAreaWidgetDelegate::~StatusAreaWidgetDelegate() { 61 StatusAreaWidgetDelegate::~StatusAreaWidgetDelegate() {
62 } 62 }
63 63
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 void StatusAreaWidgetDelegate::ChildVisibilityChanged(View* child) { 165 void StatusAreaWidgetDelegate::ChildVisibilityChanged(View* child) {
166 UpdateLayout(); 166 UpdateLayout();
167 } 167 }
168 168
169 void StatusAreaWidgetDelegate::UpdateWidgetSize() { 169 void StatusAreaWidgetDelegate::UpdateWidgetSize() {
170 if (GetWidget()) 170 if (GetWidget())
171 GetWidget()->SetSize(GetPreferredSize()); 171 GetWidget()->SetSize(GetPreferredSize());
172 } 172 }
173 173
174 } // namespace ash 174 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/status_area_widget_delegate.h ('k') | ash/system/toast/toast_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698