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

Side by Side Diff: ash/app_list/app_list.h

Issue 10381018: ash: First pass of Applist v2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 7 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 | « no previous file | ash/app_list/app_list.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_APP_LIST_APP_LIST_H_ 5 #ifndef ASH_APP_LIST_APP_LIST_H_
6 #define ASH_APP_LIST_APP_LIST_H_ 6 #define ASH_APP_LIST_APP_LIST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 14 matching lines...) Expand all
25 // While the UI is visible, it monitors things such as app list widget's 25 // While the UI is visible, it monitors things such as app list widget's
26 // activation state and desktop mouse click to auto dismiss the UI. 26 // activation state and desktop mouse click to auto dismiss the UI.
27 class AppList : public aura::EventFilter, 27 class AppList : public aura::EventFilter,
28 public aura::RootWindowObserver, 28 public aura::RootWindowObserver,
29 public ui::ImplicitAnimationObserver, 29 public ui::ImplicitAnimationObserver,
30 public views::Widget::Observer { 30 public views::Widget::Observer {
31 public: 31 public:
32 AppList(); 32 AppList();
33 virtual ~AppList(); 33 virtual ~AppList();
34 34
35 // Returns true if AppListV2 is enabled.
36 static bool UseAppListV2();
37
35 // Show/hide app list window. 38 // Show/hide app list window.
36 void SetVisible(bool visible); 39 void SetVisible(bool visible);
37 40
38 // Whether app list window is visible (shown or being shown). 41 // Whether app list window is visible (shown or being shown).
39 bool IsVisible(); 42 bool IsVisible();
40 43
41 // Returns target visibility. This differs from IsVisible() if an animation 44 // Returns target visibility. This differs from IsVisible() if an animation
42 // is ongoing. 45 // is ongoing.
43 bool GetTargetVisibility() const { return is_visible_; } 46 bool GetTargetVisibility() const { return is_visible_; }
44 47
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // animation is scheduled in ScheduleAnimation. 104 // animation is scheduled in ScheduleAnimation.
102 base::OneShotTimer<AppList> second_animation_timer_; 105 base::OneShotTimer<AppList> second_animation_timer_;
103 106
104 DISALLOW_COPY_AND_ASSIGN(AppList); 107 DISALLOW_COPY_AND_ASSIGN(AppList);
105 }; 108 };
106 109
107 } // namespace internal 110 } // namespace internal
108 } // namespace ash 111 } // namespace ash
109 112
110 #endif // ASH_APP_LIST_APP_LIST_H_ 113 #endif // ASH_APP_LIST_APP_LIST_H_
OLDNEW
« no previous file with comments | « no previous file | ash/app_list/app_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698