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

Unified Diff: ash/launcher/launcher.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/ash.gyp ('k') | ash/launcher/launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher.h
diff --git a/ash/launcher/launcher.h b/ash/launcher/launcher.h
index c3acf44cf429a242afaa2a5508d320c4ed1fbf06..4260be96e59bd8781d7eac97fcb43e988a39dd1d 100644
--- a/ash/launcher/launcher.h
+++ b/ash/launcher/launcher.h
@@ -37,6 +37,10 @@ class LauncherView;
class ShelfLayoutManager;
}
+namespace test {
+class LauncherTestAPI;
+}
+
class LauncherIconObserver;
class LauncherDelegate;
class LauncherModel;
@@ -97,10 +101,6 @@ class ASH_EXPORT Launcher {
// A negative index launches the last launcher item in the launcher.
void LaunchAppIndexAt(int item_index);
- // Only to be called for testing. Retrieves the LauncherView.
- // TODO(sky): remove this!
- internal::LauncherView* GetLauncherViewForTest();
-
ShelfWidget* shelf_widget() { return shelf_widget_; }
// Set the bounds of the launcher view.
@@ -111,6 +111,8 @@ class ASH_EXPORT Launcher {
app_list::ApplicationDragAndDropHost* GetDragAndDropHostForAppList();
private:
+ friend class ash::test::LauncherTestAPI;
+
// LauncherView used to display icons.
internal::LauncherView* launcher_view_;
« no previous file with comments | « ash/ash.gyp ('k') | ash/launcher/launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698