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

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

Issue 11017079: Remove Shell::shelf()|status_area_widget()|launcher() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/launcher/background_animator.h" 9 #include "ash/launcher/background_animator.h"
10 #include "ash/launcher/launcher_types.h" 10 #include "ash/launcher/launcher_types.h"
(...skipping 26 matching lines...) Expand all
37 class LauncherIconObserver; 37 class LauncherIconObserver;
38 class LauncherDelegate; 38 class LauncherDelegate;
39 class LauncherModel; 39 class LauncherModel;
40 40
41 class ASH_EXPORT Launcher { 41 class ASH_EXPORT Launcher {
42 public: 42 public:
43 Launcher(aura::Window* window_container, 43 Launcher(aura::Window* window_container,
44 internal::ShelfLayoutManager* shelf_layout_manager); 44 internal::ShelfLayoutManager* shelf_layout_manager);
45 virtual ~Launcher(); 45 virtual ~Launcher();
46 46
47 // Return the launcher for the primary display.
sky 2012/10/17 16:25:20 Document these may be NULL when not logged in.
oshima 2012/10/17 17:49:43 Done.
48 static Launcher* ForPrimaryDisplay();
49
50 // Return the launcher for the display that |window| is currently on.
51 static Launcher* ForWindow(aura::Window* window);
52
47 // Sets the focus cycler. Also adds the launcher to the cycle. 53 // Sets the focus cycler. Also adds the launcher to the cycle.
48 void SetFocusCycler(internal::FocusCycler* focus_cycler); 54 void SetFocusCycler(internal::FocusCycler* focus_cycler);
49 internal::FocusCycler* GetFocusCycler(); 55 internal::FocusCycler* GetFocusCycler();
50 56
51 void SetAlignment(ShelfAlignment alignment); 57 void SetAlignment(ShelfAlignment alignment);
52 ShelfAlignment alignment() const { return alignment_; } 58 ShelfAlignment alignment() const { return alignment_; }
53 59
54 // Sets whether the launcher paints a background. Default is false, but is set 60 // Sets whether the launcher paints a background. Default is false, but is set
55 // to true if a window overlaps the shelf. 61 // to true if a window overlaps the shelf.
56 void SetPaintsBackground( 62 void SetPaintsBackground(
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 142
137 // Used to animate the background. 143 // Used to animate the background.
138 internal::BackgroundAnimator background_animator_; 144 internal::BackgroundAnimator background_animator_;
139 145
140 DISALLOW_COPY_AND_ASSIGN(Launcher); 146 DISALLOW_COPY_AND_ASSIGN(Launcher);
141 }; 147 };
142 148
143 } // namespace ash 149 } // namespace ash
144 150
145 #endif // ASH_LAUNCHER_LAUNCHER_H_ 151 #endif // ASH_LAUNCHER_LAUNCHER_H_
OLDNEW
« no previous file with comments | « ash/focus_cycler_unittest.cc ('k') | ash/launcher/launcher.cc » ('j') | ash/shell.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698