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

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

Issue 9808026: Layout panels on top of their launcher icons (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ununsed constanrs removed Created 8 years, 9 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
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/launcher/background_animator.h" 9 #include "ash/launcher/background_animator.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 12 matching lines...) Expand all
23 class Widget; 23 class Widget;
24 } 24 }
25 25
26 namespace ash { 26 namespace ash {
27 27
28 namespace internal { 28 namespace internal {
29 class FocusCycler; 29 class FocusCycler;
30 class LauncherView; 30 class LauncherView;
31 } 31 }
32 32
33 class LauncherIconsObserver;
33 class LauncherDelegate; 34 class LauncherDelegate;
34 class LauncherModel; 35 class LauncherModel;
35 36
36 class ASH_EXPORT Launcher : public internal::BackgroundAnimatorDelegate { 37 class ASH_EXPORT Launcher : public internal::BackgroundAnimatorDelegate {
37 public: 38 public:
38 explicit Launcher(aura::Window* window_container); 39 explicit Launcher(aura::Window* window_container);
39 virtual ~Launcher(); 40 virtual ~Launcher();
40 41
41 // Sets the focus cycler. Also adds the launcher to the cycle. 42 // Sets the focus cycler. Also adds the launcher to the cycle.
42 void SetFocusCycler(internal::FocusCycler* focus_cycler); 43 void SetFocusCycler(internal::FocusCycler* focus_cycler);
43 44
44 // Sets whether the launcher paints a background. Default is false, but is set 45 // Sets whether the launcher paints a background. Default is false, but is set
45 // to true if a window overlaps the shelf. 46 // to true if a window overlaps the shelf.
46 void SetPaintsBackground( 47 void SetPaintsBackground(
47 bool value, 48 bool value,
48 internal::BackgroundAnimator::ChangeType change_type); 49 internal::BackgroundAnimator::ChangeType change_type);
49 50
50 // Sets the width of the status area. 51 // Sets the width of the status area.
51 void SetStatusWidth(int width); 52 void SetStatusWidth(int width);
52 int GetStatusWidth(); 53 int GetStatusWidth();
53 54
54 // Returns the screen bounds of the item for the specified window. If there is 55 // Returns the screen bounds of the item for the specified window. If there is
55 // no item for the specified window an empty rect is returned. 56 // no item for the specified window an empty rect is returned.
56 gfx::Rect GetScreenBoundsOfItemIconForWindow(aura::Window* window); 57 gfx::Rect GetScreenBoundsOfItemIconForWindow(aura::Window* window);
58 void AddIconsObserver(LauncherIconsObserver* observer);
sky 2012/03/23 21:41:14 Add newline between 57/58.
59 void RemoveIconsObserver(LauncherIconsObserver* observer);
60
57 // Only to be called for testing. Retrieves the LauncherView. 61 // Only to be called for testing. Retrieves the LauncherView.
58 internal::LauncherView* GetLauncherViewForTest(); 62 internal::LauncherView* GetLauncherViewForTest();
59 63
60 LauncherDelegate* delegate() { return delegate_.get(); } 64 LauncherDelegate* delegate() { return delegate_.get(); }
61 65
62 LauncherModel* model() { return model_.get(); } 66 LauncherModel* model() { return model_.get(); }
63 views::Widget* widget() { return widget_.get(); } 67 views::Widget* widget() { return widget_.get(); }
64 68
65 aura::Window* window_container() { return window_container_; } 69 aura::Window* window_container() { return window_container_; }
66 70
(...skipping 20 matching lines...) Expand all
87 91
88 // Used to animate the background. 92 // Used to animate the background.
89 internal::BackgroundAnimator background_animator_; 93 internal::BackgroundAnimator background_animator_;
90 94
91 DISALLOW_COPY_AND_ASSIGN(Launcher); 95 DISALLOW_COPY_AND_ASSIGN(Launcher);
92 }; 96 };
93 97
94 } // namespace ash 98 } // namespace ash
95 99
96 #endif // ASH_LAUNCHER_LAUNCHER_H_ 100 #endif // ASH_LAUNCHER_LAUNCHER_H_
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/launcher/launcher.cc » ('j') | ash/launcher/launcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698