OLD | NEW |
---|---|
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 #include "ash/launcher/launcher.h" | 5 #include "ash/launcher/launcher.h" |
6 | 6 |
7 #include "ash/focus_cycler.h" | 7 #include "ash/focus_cycler.h" |
8 #include "ash/launcher/launcher_delegate.h" | 8 #include "ash/launcher/launcher_delegate.h" |
9 #include "ash/launcher/launcher_model.h" | 9 #include "ash/launcher/launcher_model.h" |
10 #include "ash/launcher/launcher_view.h" | 10 #include "ash/launcher/launcher_view.h" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
132 } | 132 } |
133 | 133 |
134 void Launcher::SetStatusWidth(int width) { | 134 void Launcher::SetStatusWidth(int width) { |
135 delegate_view_->SetStatusWidth(width); | 135 delegate_view_->SetStatusWidth(width); |
136 } | 136 } |
137 | 137 |
138 int Launcher::GetStatusWidth() { | 138 int Launcher::GetStatusWidth() { |
139 return delegate_view_->status_width(); | 139 return delegate_view_->status_width(); |
140 } | 140 } |
141 | 141 |
142 internal::LauncherView* Launcher::GetLauncherViewForTest() { | |
143 return static_cast<internal::LauncherView*>( | |
sky
2012/03/14 04:05:44
This is brittle, cache LauncherView as a field (I
DaveMoore
2012/03/14 19:54:58
Done.
| |
144 widget_->GetContentsView()->child_at(0)); | |
145 } | |
142 } // namespace ash | 146 } // namespace ash |
OLD | NEW |