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

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

Issue 9406031: Makes it so the launcher only gets focus when using the keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "ash/ash_export.h" 11 #include "ash/ash_export.h"
12 12
13 namespace aura { 13 namespace aura {
14 class Window; 14 class Window;
15 } 15 }
16 16
17 namespace views { 17 namespace views {
18 class Widget; 18 class Widget;
19 } 19 }
20 20
21 namespace ash { 21 namespace ash {
22 22
23 namespace internal {
24 class FocusCycler;
25 }
26
23 class LauncherModel; 27 class LauncherModel;
24 28
25 class ASH_EXPORT Launcher { 29 class ASH_EXPORT Launcher {
26 public: 30 public:
27 explicit Launcher(aura::Window* window_container); 31 explicit Launcher(aura::Window* window_container);
28 ~Launcher(); 32 ~Launcher();
29 33
34 // Sets the focus cycler.
35 void SetFocusCycler(const internal::FocusCycler* focus_cycler);
36
30 // Sets the width of the status area. 37 // Sets the width of the status area.
31 void SetStatusWidth(int width); 38 void SetStatusWidth(int width);
32 int GetStatusWidth(); 39 int GetStatusWidth();
33 40
34 LauncherModel* model() { return model_.get(); } 41 LauncherModel* model() { return model_.get(); }
35 views::Widget* widget() { return widget_.get(); } 42 views::Widget* widget() { return widget_.get(); }
36 43
37 aura::Window* window_container() { return window_container_; } 44 aura::Window* window_container() { return window_container_; }
38 45
39 private: 46 private:
(...skipping 13 matching lines...) Expand all
53 60
54 // Contents view of the widget. Houses the LauncherView. 61 // Contents view of the widget. Houses the LauncherView.
55 DelegateView* delegate_view_; 62 DelegateView* delegate_view_;
56 63
57 DISALLOW_COPY_AND_ASSIGN(Launcher); 64 DISALLOW_COPY_AND_ASSIGN(Launcher);
58 }; 65 };
59 66
60 } // namespace ash 67 } // namespace ash
61 68
62 #endif // ASH_LAUNCHER_LAUNCHER_H_ 69 #endif // ASH_LAUNCHER_LAUNCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698