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

Side by Side Diff: ash/launcher/launcher.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 | « ash/ash_switches.cc ('k') | ash/launcher/launcher.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_LAUNCHER_LAUNCHER_H_ 5 #ifndef ASH_LAUNCHER_LAUNCHER_H_
6 #define ASH_LAUNCHER_LAUNCHER_H_ 6 #define ASH_LAUNCHER_LAUNCHER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ash/ash_export.h"
9 #include "ash/launcher/background_animator.h" 10 #include "ash/launcher/background_animator.h"
10 #include "base/basictypes.h" 11 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
12 #include "ash/ash_export.h"
13 13
14 namespace aura { 14 namespace aura {
15 class Window; 15 class Window;
16 } 16 }
17 17
18 namespace gfx { 18 namespace gfx {
19 class Rect; 19 class Rect;
20 } 20 }
21 21
22 namespace views { 22 namespace views {
23 class View;
23 class Widget; 24 class Widget;
24 } 25 }
25 26
26 namespace ash { 27 namespace ash {
27 28
28 namespace internal { 29 namespace internal {
29 class FocusCycler; 30 class FocusCycler;
30 class LauncherView; 31 class LauncherView;
31 } 32 }
32 33
(...skipping 23 matching lines...) Expand all
56 // Returns the screen bounds of the item for the specified window. If there is 57 // Returns the screen bounds of the item for the specified window. If there is
57 // no item for the specified window an empty rect is returned. 58 // no item for the specified window an empty rect is returned.
58 gfx::Rect GetScreenBoundsOfItemIconForWindow(aura::Window* window); 59 gfx::Rect GetScreenBoundsOfItemIconForWindow(aura::Window* window);
59 60
60 void AddIconObserver(LauncherIconObserver* observer); 61 void AddIconObserver(LauncherIconObserver* observer);
61 void RemoveIconObserver(LauncherIconObserver* observer); 62 void RemoveIconObserver(LauncherIconObserver* observer);
62 63
63 // Returns true if the Launcher is showing a context menu. 64 // Returns true if the Launcher is showing a context menu.
64 bool IsShowingMenu() const; 65 bool IsShowingMenu() const;
65 66
67 views::View* GetAppListButtonView() const;
68
66 // Only to be called for testing. Retrieves the LauncherView. 69 // Only to be called for testing. Retrieves the LauncherView.
67 // TODO(sky): remove this! 70 // TODO(sky): remove this!
68 internal::LauncherView* GetLauncherViewForTest(); 71 internal::LauncherView* GetLauncherViewForTest();
69 72
70 LauncherDelegate* delegate() { return delegate_.get(); } 73 LauncherDelegate* delegate() { return delegate_.get(); }
71 74
72 LauncherModel* model() { return model_.get(); } 75 LauncherModel* model() { return model_.get(); }
73 views::Widget* widget() { return widget_.get(); } 76 views::Widget* widget() { return widget_.get(); }
74 77
75 aura::Window* window_container() { return window_container_; } 78 aura::Window* window_container() { return window_container_; }
(...skipping 21 matching lines...) Expand all
97 100
98 // Used to animate the background. 101 // Used to animate the background.
99 internal::BackgroundAnimator background_animator_; 102 internal::BackgroundAnimator background_animator_;
100 103
101 DISALLOW_COPY_AND_ASSIGN(Launcher); 104 DISALLOW_COPY_AND_ASSIGN(Launcher);
102 }; 105 };
103 106
104 } // namespace ash 107 } // namespace ash
105 108
106 #endif // ASH_LAUNCHER_LAUNCHER_H_ 109 #endif // ASH_LAUNCHER_LAUNCHER_H_
OLDNEW
« no previous file with comments | « ash/ash_switches.cc ('k') | ash/launcher/launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698