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

Side by Side Diff: ash/system/overview/overview_button_tray.cc

Issue 844763006: Change overview mode to so that docked panel windows are not grouped together. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed stale pointer in ScopedTransformOverviewWindow. Created 5 years, 11 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
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 "ash/system/overview/overview_button_tray.h" 5 #include "ash/system/overview/overview_button_tray.h"
6 6
7 #include "ash/shelf/shelf_types.h" 7 #include "ash/shelf/shelf_types.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "ash/system/tray/system_tray_delegate.h" 9 #include "ash/system/tray/system_tray_delegate.h"
10 #include "ash/system/tray/tray_utils.h" 10 #include "ash/system/tray/tray_utils.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 } 62 }
63 63
64 void OverviewButtonTray::OnMaximizeModeStarted() { 64 void OverviewButtonTray::OnMaximizeModeStarted() {
65 UpdateIconVisibility(); 65 UpdateIconVisibility();
66 } 66 }
67 67
68 void OverviewButtonTray::OnMaximizeModeEnded() { 68 void OverviewButtonTray::OnMaximizeModeEnded() {
69 UpdateIconVisibility(); 69 UpdateIconVisibility();
70 } 70 }
71 71
72 void OverviewButtonTray::OnOverviewModeEnding() { 72 void OverviewButtonTray::OnOverviewModeEnded() {
73 SetDrawBackgroundAsActive(false); 73 SetDrawBackgroundAsActive(false);
74 } 74 }
75 75
76 bool OverviewButtonTray::ClickedOutsideBubble() { 76 bool OverviewButtonTray::ClickedOutsideBubble() {
77 // This class has no bubbles dismiss, but acknowledge that the message was 77 // This class has no bubbles dismiss, but acknowledge that the message was
78 // handled. 78 // handled.
79 return true; 79 return true;
80 } 80 }
81 81
82 base::string16 OverviewButtonTray::GetAccessibleNameForTray() { 82 base::string16 OverviewButtonTray::GetAccessibleNameForTray() {
(...skipping 30 matching lines...) Expand all
113 } 113 }
114 } 114 }
115 115
116 void OverviewButtonTray::UpdateIconVisibility() { 116 void OverviewButtonTray::UpdateIconVisibility() {
117 SetVisible(Shell::GetInstance()->maximize_mode_controller()-> 117 SetVisible(Shell::GetInstance()->maximize_mode_controller()->
118 IsMaximizeModeWindowManagerEnabled() && 118 IsMaximizeModeWindowManagerEnabled() &&
119 Shell::GetInstance()->window_selector_controller()->CanSelect()); 119 Shell::GetInstance()->window_selector_controller()->CanSelect());
120 } 120 }
121 121
122 } // namespace ash 122 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/overview/overview_button_tray.h ('k') | ash/wm/maximize_mode/maximize_mode_window_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698