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

Unified Diff: ash/launcher/launcher_view.cc

Issue 10381018: ash: First pass of Applist v2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
Index: ash/launcher/launcher_view.cc
diff --git a/ash/launcher/launcher_view.cc b/ash/launcher/launcher_view.cc
index f5833ba1c9a6fa1ea70c4ff88373b77bb9e1375a..36a19ab05ba6131fd5a1c598f99682d9cb33c173 100644
--- a/ash/launcher/launcher_view.cc
+++ b/ash/launcher/launcher_view.cc
@@ -317,6 +317,16 @@ bool LauncherView::IsShowingMenu() const {
return false;
}
+views::View* LauncherView::GetAppListButtonView() const {
+ for (int i = 0; i < model_->item_count(); ++i) {
+ if (model_->items()[i].type == TYPE_APP_LIST)
+ return view_model_->view_at(i);
+ }
+
+ NOTREACHED() << "Applist button not found";
+ return NULL;
+}
+
////////////////////////////////////////////////////////////////////////////////
// LauncherView, FocusTraversable implementation:

Powered by Google App Engine
This is Rietveld 408576698