| Index: ui/app_list/views/app_list_view.h
|
| diff --git a/ui/app_list/views/app_list_view.h b/ui/app_list/views/app_list_view.h
|
| index fb3b061ebef8785d33a8e979000d097a1cbf251c..cbdb1d895728135ba6ba8995b4aa480b4bcfaabb 100644
|
| --- a/ui/app_list/views/app_list_view.h
|
| +++ b/ui/app_list/views/app_list_view.h
|
| @@ -38,16 +38,18 @@ class APP_LIST_EXPORT AppListView : public views::BubbleDialogDelegateView,
|
| explicit AppListView(AppListViewDelegate* delegate);
|
| ~AppListView() override;
|
|
|
| - // Initializes the widget.
|
| - void InitAsBubble(gfx::NativeView parent, int initial_apps_page);
|
| + // Initializes the widget as a bubble or fullscreen view depending on the
|
| + // presence of a cmd line switch. parent and initial_apps_page are used for
|
| + // both the bubble and fullscreen initialization.
|
| + void Initialize(gfx::NativeView parent, int initial_apps_page);
|
|
|
| void SetBubbleArrow(views::BubbleBorder::Arrow arrow);
|
|
|
| - void SetAnchorPoint(const gfx::Point& anchor_point);
|
| + void MaybeSetAnchorPoint(const gfx::Point& anchor_point);
|
|
|
| // If |drag_and_drop_host| is not NULL it will be called upon drag and drop
|
| // operations outside the application list. This has to be called after
|
| - // InitAsBubble was called since the app list object needs to exist so that
|
| + // Initialize was called since the app list object needs to exist so that
|
| // it can set the host.
|
| void SetDragAndDropHostOfCurrentAppList(
|
| ApplicationDragAndDropHost* drag_and_drop_host);
|
| @@ -69,6 +71,7 @@ class APP_LIST_EXPORT AppListView : public views::BubbleDialogDelegateView,
|
| // Overridden from views::View:
|
| gfx::Size GetPreferredSize() const override;
|
| void OnPaint(gfx::Canvas* canvas) override;
|
| + const char* GetClassName() const override;
|
|
|
| // WidgetDelegate overrides:
|
| bool ShouldHandleSystemCommands() const override;
|
| @@ -93,6 +96,12 @@ class APP_LIST_EXPORT AppListView : public views::BubbleDialogDelegateView,
|
|
|
| void InitChildWidgets();
|
|
|
| + // Initializes the widget for fullscreen mode.
|
| + void InitializeFullscreen(gfx::NativeView parent, int initial_apps_page);
|
| +
|
| + // Initializes the widget as a bubble.
|
| + void InitializeBubble(gfx::NativeView parent, int initial_apps_page);
|
| +
|
| // Overridden from views::BubbleDialogDelegateView:
|
| void OnBeforeBubbleWidgetInit(views::Widget::InitParams* params,
|
| views::Widget* widget) const override;
|
| @@ -117,8 +126,8 @@ class APP_LIST_EXPORT AppListView : public views::BubbleDialogDelegateView,
|
| SpeechView* speech_view_;
|
|
|
| views::View* search_box_focus_host_; // Owned by the views hierarchy.
|
| - views::Widget* search_box_widget_; // Owned by the app list's widget.
|
| - SearchBoxView* search_box_view_; // Owned by |search_box_widget_|.
|
| + views::Widget* search_box_widget_; // Owned by the app list's widget.
|
| + SearchBoxView* search_box_view_; // Owned by |search_box_widget_|.
|
|
|
| // A semi-transparent white overlay that covers the app list while dialogs are
|
| // open.
|
|
|