Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Side by Side Diff: ash/wm/app_list_controller.h

Issue 26277006: Created ash::FirstRunHelper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/shell.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_WM_APP_LIST_CONTROLLER_H_ 5 #ifndef ASH_WM_APP_LIST_CONTROLLER_H_
6 #define ASH_WM_APP_LIST_CONTROLLER_H_ 6 #define ASH_WM_APP_LIST_CONTROLLER_H_
7 7
8 #include "ash/launcher/launcher_icon_observer.h" 8 #include "ash/launcher/launcher_icon_observer.h"
9 #include "ash/shell_observer.h" 9 #include "ash/shell_observer.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // Whether app list window is visible (shown or being shown). 59 // Whether app list window is visible (shown or being shown).
60 bool IsVisible() const; 60 bool IsVisible() const;
61 61
62 // Returns target visibility. This differs from IsVisible() if an animation 62 // Returns target visibility. This differs from IsVisible() if an animation
63 // is ongoing. 63 // is ongoing.
64 bool GetTargetVisibility() const { return is_visible_; } 64 bool GetTargetVisibility() const { return is_visible_; }
65 65
66 // Returns app list window or NULL if it is not visible. 66 // Returns app list window or NULL if it is not visible.
67 aura::Window* GetWindow(); 67 aura::Window* GetWindow();
68 68
69 // Returns app list view or NULL if it is not visible.
70 app_list::AppListView* GetView() { return view_; }
71
69 private: 72 private:
70 friend class test::AppListControllerTestApi; 73 friend class test::AppListControllerTestApi;
71 74
72 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop 75 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop
73 // operations outside the application list. 76 // operations outside the application list.
74 void SetDragAndDropHostOfCurrentAppList( 77 void SetDragAndDropHostOfCurrentAppList(
75 app_list::ApplicationDragAndDropHost* drag_and_drop_host); 78 app_list::ApplicationDragAndDropHost* drag_and_drop_host);
76 79
77 // Sets the app list view and attempts to show it. 80 // Sets the app list view and attempts to show it.
78 void SetView(app_list::AppListView* view); 81 void SetView(app_list::AppListView* view);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // Whether should schedule snap back animation. 136 // Whether should schedule snap back animation.
134 bool should_snap_back_; 137 bool should_snap_back_;
135 138
136 DISALLOW_COPY_AND_ASSIGN(AppListController); 139 DISALLOW_COPY_AND_ASSIGN(AppListController);
137 }; 140 };
138 141
139 } // namespace internal 142 } // namespace internal
140 } // namespace ash 143 } // namespace ash
141 144
142 #endif // ASH_WM_APP_LIST_CONTROLLER_H_ 145 #endif // ASH_WM_APP_LIST_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/shell.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698