| OLD | NEW |
| 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/launcher/launcher.h" | 5 #include "ash/launcher/launcher.h" |
| 6 | 6 |
| 7 #include "ash/focus_cycler.h" | 7 #include "ash/focus_cycler.h" |
| 8 #include "ash/launcher/launcher_delegate.h" | 8 #include "ash/launcher/launcher_delegate.h" |
| 9 #include "ash/launcher/launcher_model.h" | 9 #include "ash/launcher/launcher_model.h" |
| 10 #include "ash/launcher/launcher_view.h" | 10 #include "ash/launcher/launcher_view.h" |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 } | 191 } |
| 192 | 192 |
| 193 void Launcher::RemoveIconObserver(LauncherIconObserver* observer) { | 193 void Launcher::RemoveIconObserver(LauncherIconObserver* observer) { |
| 194 launcher_view_->RemoveIconObserver(observer); | 194 launcher_view_->RemoveIconObserver(observer); |
| 195 } | 195 } |
| 196 | 196 |
| 197 bool Launcher::IsShowingMenu() const { | 197 bool Launcher::IsShowingMenu() const { |
| 198 return launcher_view_->IsShowingMenu(); | 198 return launcher_view_->IsShowingMenu(); |
| 199 } | 199 } |
| 200 | 200 |
| 201 views::View* Launcher::GetAppListButtonView() const { |
| 202 return launcher_view_->GetAppListButtonView(); |
| 203 } |
| 204 |
| 201 internal::LauncherView* Launcher::GetLauncherViewForTest() { | 205 internal::LauncherView* Launcher::GetLauncherViewForTest() { |
| 202 return launcher_view_; | 206 return launcher_view_; |
| 203 } | 207 } |
| 204 | 208 |
| 205 void Launcher::UpdateBackground(int alpha) { | 209 void Launcher::UpdateBackground(int alpha) { |
| 206 ui::Layer* layer = widget_->GetNativeView()->layer(); | 210 ui::Layer* layer = widget_->GetNativeView()->layer(); |
| 207 layer->SetColor(SkColorSetARGB(alpha, 0, 0, 0)); | 211 layer->SetColor(SkColorSetARGB(alpha, 0, 0, 0)); |
| 208 } | 212 } |
| 209 | 213 |
| 210 } // namespace ash | 214 } // namespace ash |
| OLD | NEW |