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

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

Issue 485453003: Split AppListController::SetVisible into Show and Dismiss. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 6 years, 3 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') | ash/wm/app_list_controller.cc » ('j') | 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/shelf/shelf_icon_observer.h" 8 #include "ash/shelf/shelf_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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 public ShellObserver, 46 public ShellObserver,
47 public ShelfIconObserver, 47 public ShelfIconObserver,
48 public app_list::PaginationModelObserver { 48 public app_list::PaginationModelObserver {
49 public: 49 public:
50 AppListController(); 50 AppListController();
51 virtual ~AppListController(); 51 virtual ~AppListController();
52 52
53 // Show/hide app list window. The |window| is used to deterime in 53 // Show/hide app list window. The |window| is used to deterime in
54 // which display (in which the |window| exists) the app list should 54 // which display (in which the |window| exists) the app list should
55 // be shown. 55 // be shown.
56 void SetVisible(bool visible, aura::Window* window); 56 void Show(aura::Window* window);
57 void Dismiss();
57 58
58 // Whether app list window is visible (shown or being shown). 59 // Whether app list window is visible (shown or being shown).
59 bool IsVisible() const; 60 bool IsVisible() const;
60 61
61 // Returns target visibility. This differs from IsVisible() if an animation 62 // Returns target visibility. This differs from IsVisible() if an animation
62 // is ongoing. 63 // is ongoing.
63 bool GetTargetVisibility() const { return is_visible_; } 64 bool GetTargetVisibility() const { return is_visible_; }
64 65
65 // Returns app list window or NULL if it is not visible. 66 // Returns app list window or NULL if it is not visible.
66 aura::Window* GetWindow(); 67 aura::Window* GetWindow();
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 143
143 // Whether should schedule snap back animation. 144 // Whether should schedule snap back animation.
144 bool should_snap_back_; 145 bool should_snap_back_;
145 146
146 DISALLOW_COPY_AND_ASSIGN(AppListController); 147 DISALLOW_COPY_AND_ASSIGN(AppListController);
147 }; 148 };
148 149
149 } // namespace ash 150 } // namespace ash
150 151
151 #endif // ASH_WM_APP_LIST_CONTROLLER_H_ 152 #endif // ASH_WM_APP_LIST_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/app_list_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698