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

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

Issue 23449033: [ash] Remove Launcher::GetLauncherViewForTest() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing class keyword Created 7 years, 3 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
« no previous file with comments | « ash/launcher/launcher.h ('k') | ash/launcher/launcher_tooltip_manager_unittest.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 #include "ash/launcher/launcher.h" 5 #include "ash/launcher/launcher.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "ash/focus_cycler.h" 10 #include "ash/focus_cycler.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 // There are two ways how found_index can be valid: a.) the nth item was 171 // There are two ways how found_index can be valid: a.) the nth item was
172 // found (which is true when indexes_left is -1) or b.) the last item was 172 // found (which is true when indexes_left is -1) or b.) the last item was
173 // requested (which is true when index was passed in as a negative number). 173 // requested (which is true when index was passed in as a negative number).
174 if (found_index >= 0 && (indexes_left == -1 || item_index < 0)) { 174 if (found_index >= 0 && (indexes_left == -1 || item_index < 0)) {
175 // Then set this one as active (or advance to the next item of its kind). 175 // Then set this one as active (or advance to the next item of its kind).
176 ActivateLauncherItem(found_index); 176 ActivateLauncherItem(found_index);
177 } 177 }
178 } 178 }
179 179
180 internal::LauncherView* Launcher::GetLauncherViewForTest() {
181 return launcher_view_;
182 }
183
184 void Launcher::SetLauncherViewBounds(gfx::Rect bounds) { 180 void Launcher::SetLauncherViewBounds(gfx::Rect bounds) {
185 launcher_view_->SetBoundsRect(bounds); 181 launcher_view_->SetBoundsRect(bounds);
186 } 182 }
187 183
188 gfx::Rect Launcher::GetLauncherViewBounds() const { 184 gfx::Rect Launcher::GetLauncherViewBounds() const {
189 return launcher_view_->bounds(); 185 return launcher_view_->bounds();
190 } 186 }
191 187
192 app_list::ApplicationDragAndDropHost* Launcher::GetDragAndDropHostForAppList() { 188 app_list::ApplicationDragAndDropHost* Launcher::GetDragAndDropHostForAppList() {
193 return launcher_view_; 189 return launcher_view_;
194 } 190 }
195 191
196 } // namespace ash 192 } // namespace ash
OLDNEW
« no previous file with comments | « ash/launcher/launcher.h ('k') | ash/launcher/launcher_tooltip_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698