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

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

Issue 9702072: Second try for (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « no previous file | ash/launcher/launcher.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_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"
(...skipping 29 matching lines...) Expand all
40 // Sets the focus cycler. 40 // Sets the focus cycler.
41 void SetFocusCycler(const internal::FocusCycler* focus_cycler); 41 void SetFocusCycler(const internal::FocusCycler* focus_cycler);
42 42
43 // Sets the width of the status area. 43 // Sets the width of the status area.
44 void SetStatusWidth(int width); 44 void SetStatusWidth(int width);
45 int GetStatusWidth(); 45 int GetStatusWidth();
46 46
47 // Returns the screen bounds of the item for the specified window. If there is 47 // Returns the screen bounds of the item for the specified window. If there is
48 // no item for the specified window an empty rect is returned. 48 // no item for the specified window an empty rect is returned.
49 gfx::Rect GetScreenBoundsOfItemIconForWindow(aura::Window* window); 49 gfx::Rect GetScreenBoundsOfItemIconForWindow(aura::Window* window);
50 // Only to be called for testing. Retrieves the LauncherView.
51 internal::LauncherView* GetLauncherViewForTest();
50 52
51 LauncherDelegate* delegate() { return delegate_.get(); } 53 LauncherDelegate* delegate() { return delegate_.get(); }
52 54
53 LauncherModel* model() { return model_.get(); } 55 LauncherModel* model() { return model_.get(); }
54 views::Widget* widget() { return widget_.get(); } 56 views::Widget* widget() { return widget_.get(); }
55 57
56 aura::Window* window_container() { return window_container_; } 58 aura::Window* window_container() { return window_container_; }
57 59
58 private: 60 private:
59 class DelegateView; 61 class DelegateView;
60 62
61 scoped_ptr<LauncherModel> model_; 63 scoped_ptr<LauncherModel> model_;
62 64
63 // Widget hosting the view. 65 // Widget hosting the view.
64 scoped_ptr<views::Widget> widget_; 66 scoped_ptr<views::Widget> widget_;
65 67
66 aura::Window* window_container_; 68 aura::Window* window_container_;
67 69
68 // Contents view of the widget. Houses the LauncherView. 70 // Contents view of the widget. Houses the LauncherView.
69 DelegateView* delegate_view_; 71 DelegateView* delegate_view_;
70 72
73 // LauncherView used to display icons.
71 internal::LauncherView* launcher_view_; 74 internal::LauncherView* launcher_view_;
72 75
73 scoped_ptr<LauncherDelegate> delegate_; 76 scoped_ptr<LauncherDelegate> delegate_;
74 77
75 DISALLOW_COPY_AND_ASSIGN(Launcher); 78 DISALLOW_COPY_AND_ASSIGN(Launcher);
76 }; 79 };
77 80
78 } // namespace ash 81 } // namespace ash
79 82
80 #endif // ASH_LAUNCHER_LAUNCHER_H_ 83 #endif // ASH_LAUNCHER_LAUNCHER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/launcher/launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698