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

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: rebase Created 8 years, 7 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/launcher/launcher_view.h ('k') | chrome/app/generated_resources.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher_view.cc
diff --git a/ash/launcher/launcher_view.cc b/ash/launcher/launcher_view.cc
index d254203684cc869d6eec425be818fc831fb79c2f..2f2ba3fc79456cc6628301145d5933feaddf2e55 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:
« no previous file with comments | « ash/launcher/launcher_view.h ('k') | chrome/app/generated_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698