| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 | 9 |
| 10 #include "ash/focus_cycler.h" | 10 #include "ash/focus_cycler.h" |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 } | 336 } |
| 337 | 337 |
| 338 void Launcher::RemoveIconObserver(LauncherIconObserver* observer) { | 338 void Launcher::RemoveIconObserver(LauncherIconObserver* observer) { |
| 339 launcher_view_->RemoveIconObserver(observer); | 339 launcher_view_->RemoveIconObserver(observer); |
| 340 } | 340 } |
| 341 | 341 |
| 342 bool Launcher::IsShowingMenu() const { | 342 bool Launcher::IsShowingMenu() const { |
| 343 return launcher_view_->IsShowingMenu(); | 343 return launcher_view_->IsShowingMenu(); |
| 344 } | 344 } |
| 345 | 345 |
| 346 void Launcher::ShowContextMenu(const gfx::Point& location) { |
| 347 launcher_view_->ShowContextMenu(location, false); |
| 348 } |
| 349 |
| 346 bool Launcher::IsShowingOverflowBubble() const { | 350 bool Launcher::IsShowingOverflowBubble() const { |
| 347 return launcher_view_->IsShowingOverflowBubble(); | 351 return launcher_view_->IsShowingOverflowBubble(); |
| 348 } | 352 } |
| 349 | 353 |
| 350 void Launcher::SetVisible(bool visible) const { | 354 void Launcher::SetVisible(bool visible) const { |
| 351 delegate_view_->SetVisible(visible); | 355 delegate_view_->SetVisible(visible); |
| 352 } | 356 } |
| 353 | 357 |
| 354 views::View* Launcher::GetAppListButtonView() const { | 358 views::View* Launcher::GetAppListButtonView() const { |
| 355 return launcher_view_->GetAppListButtonView(); | 359 return launcher_view_->GetAppListButtonView(); |
| 356 } | 360 } |
| 357 | 361 |
| 358 void Launcher::SetWidgetBounds(const gfx::Rect bounds) { | 362 void Launcher::SetWidgetBounds(const gfx::Rect bounds) { |
| 359 widget_->SetBounds(bounds); | 363 widget_->SetBounds(bounds); |
| 360 if (dimmer_.get()) | 364 if (dimmer_.get()) |
| 361 dimmer_->SetBounds(bounds); | 365 dimmer_->SetBounds(bounds); |
| 362 } | 366 } |
| 363 | 367 |
| 364 internal::LauncherView* Launcher::GetLauncherViewForTest() { | 368 internal::LauncherView* Launcher::GetLauncherViewForTest() { |
| 365 return launcher_view_; | 369 return launcher_view_; |
| 366 } | 370 } |
| 367 | 371 |
| 368 } // namespace ash | 372 } // namespace ash |
| OLD | NEW |