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

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: Pre-patch with tests Created 8 years, 8 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 LauncherIconObserver;
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 internal::FocusCycler* GetFocusCycler(); 44 internal::FocusCycler* GetFocusCycler();
44 45
45 // Sets whether the launcher paints a background. Default is false, but is set 46 // Sets whether the launcher paints a background. Default is false, but is set
46 // to true if a window overlaps the shelf. 47 // to true if a window overlaps the shelf.
47 void SetPaintsBackground( 48 void SetPaintsBackground(
48 bool value, 49 bool value,
49 internal::BackgroundAnimator::ChangeType change_type); 50 internal::BackgroundAnimator::ChangeType change_type);
50 51
51 // Sets the width of the status area. 52 // Sets the width of the status area.
52 void SetStatusWidth(int width); 53 void SetStatusWidth(int width);
53 int GetStatusWidth(); 54 int GetStatusWidth();
54 55
55 // Returns the screen bounds of the item for the specified window. If there is 56 // Returns the screen bounds of the item for the specified window. If there is
56 // no item for the specified window an empty rect is returned. 57 // no item for the specified window an empty rect is returned.
57 gfx::Rect GetScreenBoundsOfItemIconForWindow(aura::Window* window); 58 gfx::Rect GetScreenBoundsOfItemIconForWindow(aura::Window* window);
58 59
60 void AddIconObserver(LauncherIconObserver* observer);
61 void RemoveIconObserver(LauncherIconObserver* observer);
62
59 // Returns true if the Launcher is showing a context menu. 63 // Returns true if the Launcher is showing a context menu.
60 bool IsShowingMenu() const; 64 bool IsShowingMenu() const;
61 65
62 // Only to be called for testing. Retrieves the LauncherView. 66 // Only to be called for testing. Retrieves the LauncherView.
63 // TODO(sky): remove this! 67 // TODO(sky): remove this!
64 internal::LauncherView* GetLauncherViewForTest(); 68 internal::LauncherView* GetLauncherViewForTest();
65 69
66 LauncherDelegate* delegate() { return delegate_.get(); } 70 LauncherDelegate* delegate() { return delegate_.get(); }
67 71
68 LauncherModel* model() { return model_.get(); } 72 LauncherModel* model() { return model_.get(); }
(...skipping 24 matching lines...) Expand all
93 97
94 // Used to animate the background. 98 // Used to animate the background.
95 internal::BackgroundAnimator background_animator_; 99 internal::BackgroundAnimator background_animator_;
96 100
97 DISALLOW_COPY_AND_ASSIGN(Launcher); 101 DISALLOW_COPY_AND_ASSIGN(Launcher);
98 }; 102 };
99 103
100 } // namespace ash 104 } // namespace ash
101 105
102 #endif // ASH_LAUNCHER_LAUNCHER_H_ 106 #endif // ASH_LAUNCHER_LAUNCHER_H_
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/launcher/launcher.cc » ('j') | ash/wm/panel_layout_manager_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698