| OLD | NEW | 
|    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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  107   } else { |  107   } else { | 
|  108     icon_->SetBorder(views::Border::CreateEmptyBorder( |  108     icon_->SetBorder(views::Border::CreateEmptyBorder( | 
|  109         kVerticalShelfVerticalPadding, |  109         kVerticalShelfVerticalPadding, | 
|  110         kVerticalShelfHorizontalPadding, |  110         kVerticalShelfHorizontalPadding, | 
|  111         kVerticalShelfVerticalPadding, |  111         kVerticalShelfVerticalPadding, | 
|  112         kVerticalShelfHorizontalPadding)); |  112         kVerticalShelfHorizontalPadding)); | 
|  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() | 
|  118                  IsMaximizeModeWindowManagerEnabled() && |  118                  ->maximize_mode_controller() | 
|  119              Shell::GetInstance()->window_selector_controller()->CanSelect()); |  119                  ->IsMaximizeModeWindowManagerEnabled() && | 
 |  120              Shell::GetInstance() | 
 |  121                  ->window_selector_controller() | 
 |  122                  ->IsUserInActiveDesktopEnvironment()); | 
|  120 } |  123 } | 
|  121  |  124  | 
|  122 }  // namespace ash |  125 }  // namespace ash | 
| OLD | NEW |