Chromium Code Reviews| 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 16 matching lines...) Expand all Loading... | |
| 27 | 27 |
| 28 namespace test { | 28 namespace test { |
| 29 class AppListViewTestApi; | 29 class AppListViewTestApi; |
| 30 } | 30 } |
| 31 | 31 |
| 32 // AppListView is the top-level view and controller of app list UI. It creates | 32 // AppListView is the top-level view and controller of app list UI. It creates |
| 33 // and hosts a AppsGridView and passes AppListModel to it for display. | 33 // and hosts a AppsGridView and passes AppListModel to it for display. |
| 34 class APP_LIST_EXPORT AppListView : public views::BubbleDialogDelegateView, | 34 class APP_LIST_EXPORT AppListView : public views::BubbleDialogDelegateView, |
| 35 public SpeechUIModelObserver { | 35 public SpeechUIModelObserver { |
| 36 public: | 36 public: |
| 37 const char* GetClassName() const override; | |
|
sky
2017/04/07 03:28:19
Group overrides of the same type together (in othe
newcomer
2017/04/10 16:34:53
Done.
| |
| 38 | |
| 37 // Does not take ownership of |delegate|. | 39 // Does not take ownership of |delegate|. |
| 38 explicit AppListView(AppListViewDelegate* delegate); | 40 explicit AppListView(AppListViewDelegate* delegate); |
| 39 ~AppListView() override; | 41 ~AppListView() override; |
| 40 | 42 |
| 41 // Initializes the widget. | 43 // Initializes the widget with a frame. |
| 42 void InitAsBubble(gfx::NativeView parent, int initial_apps_page); | 44 void InitAsBubble(gfx::NativeView parent, int initial_apps_page); |
| 43 | 45 |
| 46 // Initializes the widget to appear frameless. | |
| 47 void InitAsFramelessWindow(gfx::NativeView parent, | |
| 48 int initial_apps_page, | |
| 49 gfx::Rect bounds); | |
|
sky
2017/04/07 03:28:19
const gfx::Rect& bounds
newcomer
2017/04/10 16:34:53
Done.
| |
| 50 | |
| 44 void SetBubbleArrow(views::BubbleBorder::Arrow arrow); | 51 void SetBubbleArrow(views::BubbleBorder::Arrow arrow); |
| 45 | 52 |
| 46 void SetAnchorPoint(const gfx::Point& anchor_point); | 53 void SetAnchorPoint(const gfx::Point& anchor_point); |
| 47 | 54 |
| 48 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop | 55 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop |
| 49 // operations outside the application list. This has to be called after | 56 // operations outside the application list. This has to be called after |
| 50 // InitAsBubble was called since the app list object needs to exist so that | 57 // InitAsBubble was called since the app list object needs to exist so that |
| 51 // it can set the host. | 58 // it can set the host. |
| 52 void SetDragAndDropHostOfCurrentAppList( | 59 void SetDragAndDropHostOfCurrentAppList( |
| 53 ApplicationDragAndDropHost* drag_and_drop_host); | 60 ApplicationDragAndDropHost* drag_and_drop_host); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 128 | 135 |
| 129 // For UMA and testing. If non-null, triggered when the app list is painted. | 136 // For UMA and testing. If non-null, triggered when the app list is painted. |
| 130 base::Closure next_paint_callback_; | 137 base::Closure next_paint_callback_; |
| 131 | 138 |
| 132 DISALLOW_COPY_AND_ASSIGN(AppListView); | 139 DISALLOW_COPY_AND_ASSIGN(AppListView); |
| 133 }; | 140 }; |
| 134 | 141 |
| 135 } // namespace app_list | 142 } // namespace app_list |
| 136 | 143 |
| 137 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 144 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
| OLD | NEW |