Index: ui/app_list/views/page_switcher.h |
diff --git a/ui/app_list/views/page_switcher.h b/ui/app_list/views/page_switcher.h |
index 61a00ae64ce071f4c3cc181591322cce11747352..17213c5d668c41d2c3dbc85416f709334bb810e7 100644 |
--- a/ui/app_list/views/page_switcher.h |
+++ b/ui/app_list/views/page_switcher.h |
@@ -33,6 +33,10 @@ class PageSwitcher : public views::View, |
// coordinates. |
void UpdateUIForDragPoint(const gfx::Point& point); |
+ // Disconnects the PageSwitcher from its underlying PaginationModel. Can be |
+ // used if the PaginationModel is going to be destroyed. |
+ void ReleasePaginationModel(); |
+ |
// Overridden from views::View: |
virtual gfx::Size GetPreferredSize() const OVERRIDE; |
virtual void Layout() OVERRIDE; |
@@ -50,7 +54,7 @@ class PageSwitcher : public views::View, |
virtual void TransitionStarted() OVERRIDE; |
virtual void TransitionChanged() OVERRIDE; |
- PaginationModel* model_; // Owned by AppListController. |
+ PaginationModel* model_; // Owned by AppListController; may be NULL. |
xiyuan
2014/05/30 15:47:47
Update comments as |model_| is ownded by AppsGridV
Matt Giuca
2014/06/02 07:11:23
Done.
|
views::View* buttons_; // Owned by views hierarchy. |
DISALLOW_COPY_AND_ASSIGN(PageSwitcher); |