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

Unified Diff: mash/shelf/shelf_view.cc

Issue 1674903003: Extract shell methods from ApplicationImpl into a base class, and pass this to Initialize() instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojom
Patch Set: . Created 4 years, 10 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 | « mash/shelf/shelf_view.h ('k') | mash/shell/shell_application_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/shelf/shelf_view.cc
diff --git a/mash/shelf/shelf_view.cc b/mash/shelf/shelf_view.cc
index bf75e48ac21204856e4832963d1a5402ebf6c745..c31500a6b2547bada593819869072f064a233d0a 100644
--- a/mash/shelf/shelf_view.cc
+++ b/mash/shelf/shelf_view.cc
@@ -230,9 +230,9 @@ class ShelfView::StartFadeAnimationDelegate : public gfx::AnimationDelegate {
DISALLOW_COPY_AND_ASSIGN(StartFadeAnimationDelegate);
};
-ShelfView::ShelfView(mojo::ApplicationImpl* app)
- : app_(app),
- model_(app),
+ShelfView::ShelfView(mojo::Shell* shell)
+ : shell_(shell),
+ model_(shell),
alignment_(SHELF_ALIGNMENT_BOTTOM),
first_visible_index_(0),
last_visible_index_(-1),
« no previous file with comments | « mash/shelf/shelf_view.h ('k') | mash/shell/shell_application_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698