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

Side by Side Diff: ui/app_list/views/apps_grid_view.h

Issue 497413003: Refactor app list event handling and prerendering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved some app-grid-specific logic from ContentsView to AppsGridView. Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_
6 #define UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 void UpdateDrag(Pointer pointer, const gfx::Point& point); 110 void UpdateDrag(Pointer pointer, const gfx::Point& point);
111 void EndDrag(bool cancel); 111 void EndDrag(bool cancel);
112 bool IsDraggedView(const views::View* view) const; 112 bool IsDraggedView(const views::View* view) const;
113 void ClearDragState(); 113 void ClearDragState();
114 void SetDragViewVisible(bool visible); 114 void SetDragViewVisible(bool visible);
115 115
116 // Set the drag and drop host for application links. 116 // Set the drag and drop host for application links.
117 void SetDragAndDropHostOfCurrentAppList( 117 void SetDragAndDropHostOfCurrentAppList(
118 ApplicationDragAndDropHost* drag_and_drop_host); 118 ApplicationDragAndDropHost* drag_and_drop_host);
119 119
120 // Prerenders the icons on and around |page_index|. 120 // Prerenders the icons on and around the currently selected page.
121 void Prerender(int page_index); 121 void Prerender();
122 122
123 // Return true if the |bounds_animator_| is animating |view|. 123 // Return true if the |bounds_animator_| is animating |view|.
124 bool IsAnimatingView(views::View* view); 124 bool IsAnimatingView(views::View* view);
125 125
126 bool has_dragged_view() const { return drag_view_ != NULL; } 126 bool has_dragged_view() const { return drag_view_ != NULL; }
127 bool dragging() const { return drag_pointer_ != NONE; } 127 bool dragging() const { return drag_pointer_ != NONE; }
128 128
129 // Gets the PaginationModel used for the grid view. 129 // Gets the PaginationModel used for the grid view.
130 PaginationModel* pagination_model() { return &pagination_model_; } 130 PaginationModel* pagination_model() { return &pagination_model_; }
131 131
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 546
547 // True if the drag_view_ item is a folder item being dragged for reparenting. 547 // True if the drag_view_ item is a folder item being dragged for reparenting.
548 bool dragging_for_reparent_item_; 548 bool dragging_for_reparent_item_;
549 549
550 DISALLOW_COPY_AND_ASSIGN(AppsGridView); 550 DISALLOW_COPY_AND_ASSIGN(AppsGridView);
551 }; 551 };
552 552
553 } // namespace app_list 553 } // namespace app_list
554 554
555 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ 555 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698