| 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/app_list/app_list_presenter_delegate.h" | 5 #include "ash/app_list/app_list_presenter_delegate.h" |
| 6 | 6 |
| 7 #include "ash/aura/wm_window_aura.h" | 7 #include "ash/aura/wm_window_aura.h" |
| 8 #include "ash/common/ash_switches.h" | 8 #include "ash/common/ash_switches.h" |
| 9 #include "ash/common/shelf/app_list_button.h" | 9 #include "ash/common/shelf/app_list_button.h" |
| 10 #include "ash/common/shelf/shelf_layout_manager.h" | 10 #include "ash/common/shelf/shelf_layout_manager.h" |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 | 322 |
| 323 //////////////////////////////////////////////////////////////////////////////// | 323 //////////////////////////////////////////////////////////////////////////////// |
| 324 // AppListPresenterDelegate, keyboard::KeyboardControllerObserver | 324 // AppListPresenterDelegate, keyboard::KeyboardControllerObserver |
| 325 // implementation: | 325 // implementation: |
| 326 | 326 |
| 327 void AppListPresenterDelegate::OnKeyboardBoundsChanging( | 327 void AppListPresenterDelegate::OnKeyboardBoundsChanging( |
| 328 const gfx::Rect& new_bounds) { | 328 const gfx::Rect& new_bounds) { |
| 329 UpdateBounds(); | 329 UpdateBounds(); |
| 330 } | 330 } |
| 331 | 331 |
| 332 void AppListPresenterDelegate::OnKeyboardClosed() {} |
| 333 |
| 332 //////////////////////////////////////////////////////////////////////////////// | 334 //////////////////////////////////////////////////////////////////////////////// |
| 333 // AppListPresenterDelegate, ShellObserver implementation: | 335 // AppListPresenterDelegate, ShellObserver implementation: |
| 334 void AppListPresenterDelegate::OnShelfAlignmentChanged(WmWindow* root_window) { | 336 void AppListPresenterDelegate::OnShelfAlignmentChanged(WmWindow* root_window) { |
| 335 if (view_) | 337 if (view_) |
| 336 view_->SetBubbleArrow(GetBubbleArrow(view_->GetWidget()->GetNativeView())); | 338 view_->SetBubbleArrow(GetBubbleArrow(view_->GetWidget()->GetNativeView())); |
| 337 } | 339 } |
| 338 | 340 |
| 339 void AppListPresenterDelegate::OnOverviewModeStarting() { | 341 void AppListPresenterDelegate::OnOverviewModeStarting() { |
| 340 if (is_visible_) | 342 if (is_visible_) |
| 341 presenter_->Dismiss(); | 343 presenter_->Dismiss(); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 358 } | 360 } |
| 359 | 361 |
| 360 //////////////////////////////////////////////////////////////////////////////// | 362 //////////////////////////////////////////////////////////////////////////////// |
| 361 // AppListPresenterDelegate, WmShelfObserver implementation: | 363 // AppListPresenterDelegate, WmShelfObserver implementation: |
| 362 | 364 |
| 363 void AppListPresenterDelegate::OnShelfIconPositionsChanged() { | 365 void AppListPresenterDelegate::OnShelfIconPositionsChanged() { |
| 364 UpdateBounds(); | 366 UpdateBounds(); |
| 365 } | 367 } |
| 366 | 368 |
| 367 } // namespace ash | 369 } // namespace ash |
| OLD | NEW |