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

Side by Side Diff: ash/launcher/launcher_view.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: Merge to trunk 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
« no previous file with comments | « ash/launcher/launcher.cc ('k') | ash/launcher/launcher_view.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_VIEW_H_ 5 #ifndef ASH_LAUNCHER_LAUNCHER_VIEW_H_
6 #define ASH_LAUNCHER_LAUNCHER_VIEW_H_ 6 #define ASH_LAUNCHER_LAUNCHER_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "ash/launcher/launcher_button_host.h" 11 #include "ash/launcher/launcher_button_host.h"
12 #include "ash/launcher/launcher_model_observer.h" 12 #include "ash/launcher/launcher_model_observer.h"
13 #include "ui/views/controls/button/button.h" 13 #include "ui/views/controls/button/button.h"
14 #include "ui/views/widget/widget_delegate.h" 14 #include "ui/views/view.h"
15 15
16 namespace views { 16 namespace views {
17 class BoundsAnimator; 17 class BoundsAnimator;
18 class ImageButton; 18 class ImageButton;
19 class MenuRunner; 19 class MenuRunner;
20 } 20 }
21 21
22 namespace ash { 22 namespace ash {
23 23
24 class LauncherDelegate; 24 class LauncherDelegate;
25 struct LauncherItem; 25 struct LauncherItem;
26 class LauncherModel; 26 class LauncherModel;
27 class LauncherWindowCycler; 27 class LauncherWindowCycler;
28 class ViewModel; 28 class ViewModel;
29 29
30 namespace internal { 30 namespace internal {
31 31
32 class LauncherView : public views::WidgetDelegateView, 32 class LauncherView : public views::View,
33 public LauncherModelObserver, 33 public LauncherModelObserver,
34 public views::ButtonListener, 34 public views::ButtonListener,
35 public LauncherButtonHost { 35 public LauncherButtonHost {
36 public: 36 public:
37 LauncherView(LauncherModel* model, LauncherDelegate* delegate); 37 LauncherView(LauncherModel* model, LauncherDelegate* delegate);
38 virtual ~LauncherView(); 38 virtual ~LauncherView();
39 39
40 void Init(); 40 void Init();
41 41
42 private: 42 private:
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // Used to handle cycling among windows. 151 // Used to handle cycling among windows.
152 scoped_ptr<LauncherWindowCycler> cycler_; 152 scoped_ptr<LauncherWindowCycler> cycler_;
153 153
154 DISALLOW_COPY_AND_ASSIGN(LauncherView); 154 DISALLOW_COPY_AND_ASSIGN(LauncherView);
155 }; 155 };
156 156
157 } // namespace internal 157 } // namespace internal
158 } // namespace ash 158 } // namespace ash
159 159
160 #endif // ASH_LAUNCHER_LAUNCHER_VIEW_H_ 160 #endif // ASH_LAUNCHER_LAUNCHER_VIEW_H_
OLDNEW
« no previous file with comments | « ash/launcher/launcher.cc ('k') | ash/launcher/launcher_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698