| 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 #ifndef ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_H_ | 5 #ifndef ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_H_ |
| 6 #define ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_H_ | 6 #define ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 void ProcessLocatedEvent(ui::LocatedEvent* event); | 65 void ProcessLocatedEvent(ui::LocatedEvent* event); |
| 66 | 66 |
| 67 // ui::EventHandler overrides: | 67 // ui::EventHandler overrides: |
| 68 void OnMouseEvent(ui::MouseEvent* event) override; | 68 void OnMouseEvent(ui::MouseEvent* event) override; |
| 69 void OnGestureEvent(ui::GestureEvent* event) override; | 69 void OnGestureEvent(ui::GestureEvent* event) override; |
| 70 | 70 |
| 71 // KeyboardControllerObserver overrides: | 71 // KeyboardControllerObserver overrides: |
| 72 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; | 72 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; |
| 73 | 73 |
| 74 // ShellObserver overrides: | 74 // ShellObserver overrides: |
| 75 void OnShelfAlignmentChanged(aura::Window* root_window) override; | 75 void OnShelfAlignmentChanged(WmWindow* root_window) override; |
| 76 void OnMaximizeModeStarted() override; | 76 void OnMaximizeModeStarted() override; |
| 77 void OnMaximizeModeEnded() override; | 77 void OnMaximizeModeEnded() override; |
| 78 | 78 |
| 79 // ShelfIconObserver overrides: | 79 // ShelfIconObserver overrides: |
| 80 void OnShelfIconPositionsChanged() override; | 80 void OnShelfIconPositionsChanged() override; |
| 81 | 81 |
| 82 // Whether the app list is visible (or in the process of being shown). | 82 // Whether the app list is visible (or in the process of being shown). |
| 83 bool is_visible_ = false; | 83 bool is_visible_ = false; |
| 84 | 84 |
| 85 // Whether the app list should remain centered. | 85 // Whether the app list should remain centered. |
| 86 bool is_centered_ = false; | 86 bool is_centered_ = false; |
| 87 | 87 |
| 88 // Not owned. Pointer is guaranteed to be valid while this object is alive. | 88 // Not owned. Pointer is guaranteed to be valid while this object is alive. |
| 89 app_list::AppListPresenter* presenter_; | 89 app_list::AppListPresenter* presenter_; |
| 90 | 90 |
| 91 // Not owned. Pointer is guaranteed to be valid while this object is alive. | 91 // Not owned. Pointer is guaranteed to be valid while this object is alive. |
| 92 app_list::AppListViewDelegateFactory* view_delegate_factory_; | 92 app_list::AppListViewDelegateFactory* view_delegate_factory_; |
| 93 | 93 |
| 94 // Owned by its widget. | 94 // Owned by its widget. |
| 95 app_list::AppListView* view_ = nullptr; | 95 app_list::AppListView* view_ = nullptr; |
| 96 | 96 |
| 97 DISALLOW_COPY_AND_ASSIGN(AppListPresenterDelegate); | 97 DISALLOW_COPY_AND_ASSIGN(AppListPresenterDelegate); |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 } // namespace ash | 100 } // namespace ash |
| 101 | 101 |
| 102 #endif // ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_H_ | 102 #endif // ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_H_ |
| OLD | NEW |