| 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 UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
| 6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 views::View* search_box_focus_host_; // Owned by the views hierarchy. | 171 views::View* search_box_focus_host_; // Owned by the views hierarchy. |
| 172 views::Widget* search_box_widget_; // Owned by the app list's widget. | 172 views::Widget* search_box_widget_; // Owned by the app list's widget. |
| 173 SearchBoxView* search_box_view_; // Owned by |search_box_widget_|. | 173 SearchBoxView* search_box_view_; // Owned by |search_box_widget_|. |
| 174 // Owned by the app list's widget. Null if the fullscreen app list is not | 174 // Owned by the app list's widget. Null if the fullscreen app list is not |
| 175 // enabled. | 175 // enabled. |
| 176 views::View* app_list_background_shield_ = nullptr; | 176 views::View* app_list_background_shield_ = nullptr; |
| 177 // The gap between the initial gesture event and the top of the window. | 177 // The gap between the initial gesture event and the top of the window. |
| 178 gfx::Point initial_drag_point_; | 178 gfx::Point initial_drag_point_; |
| 179 // The velocity of the gesture event. | 179 // The velocity of the gesture event. |
| 180 float last_fling_velocity_ = 0; | 180 float last_fling_velocity_ = 0; |
| 181 // Whether the fullscreen app list feature is enabled. |
| 182 const bool is_fullscreen_app_list_enabled_; |
| 181 // The state of the app list, controlled via SetState(). | 183 // The state of the app list, controlled via SetState(). |
| 182 AppListState app_list_state_; | 184 AppListState app_list_state_; |
| 183 | 185 |
| 184 // An observer that notifies AppListView when the display has changed. | 186 // An observer that notifies AppListView when the display has changed. |
| 185 ScopedObserver<display::Screen, display::DisplayObserver> display_observer_; | 187 ScopedObserver<display::Screen, display::DisplayObserver> display_observer_; |
| 186 | 188 |
| 187 // A semi-transparent white overlay that covers the app list while dialogs are | 189 // A semi-transparent white overlay that covers the app list while dialogs are |
| 188 // open. | 190 // open. |
| 189 views::View* overlay_view_; | 191 views::View* overlay_view_; |
| 190 | 192 |
| 191 std::unique_ptr<HideViewAnimationObserver> animation_observer_; | 193 std::unique_ptr<HideViewAnimationObserver> animation_observer_; |
| 192 | 194 |
| 193 // For UMA and testing. If non-null, triggered when the app list is painted. | 195 // For UMA and testing. If non-null, triggered when the app list is painted. |
| 194 base::Closure next_paint_callback_; | 196 base::Closure next_paint_callback_; |
| 195 | 197 |
| 196 DISALLOW_COPY_AND_ASSIGN(AppListView); | 198 DISALLOW_COPY_AND_ASSIGN(AppListView); |
| 197 }; | 199 }; |
| 198 | 200 |
| 199 } // namespace app_list | 201 } // namespace app_list |
| 200 | 202 |
| 201 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 203 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
| OLD | NEW |