OLD | NEW |
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // Prerenders the icons on and around |page_index|. | 125 // Prerenders the icons on and around |page_index|. |
126 void Prerender(int page_index); | 126 void Prerender(int page_index); |
127 | 127 |
128 // Return true if the |bounds_animator_| is animating |view|. | 128 // Return true if the |bounds_animator_| is animating |view|. |
129 bool IsAnimatingView(views::View* view); | 129 bool IsAnimatingView(views::View* view); |
130 | 130 |
131 bool has_dragged_view() const { return drag_view_ != NULL; } | 131 bool has_dragged_view() const { return drag_view_ != NULL; } |
132 bool dragging() const { return drag_pointer_ != NONE; } | 132 bool dragging() const { return drag_pointer_ != NONE; } |
133 | 133 |
134 // Overridden from views::View: | 134 // Overridden from views::View: |
135 virtual gfx::Size GetPreferredSize() OVERRIDE; | 135 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
136 virtual void Layout() OVERRIDE; | 136 virtual void Layout() OVERRIDE; |
137 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 137 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
138 virtual bool OnKeyReleased(const ui::KeyEvent& event) OVERRIDE; | 138 virtual bool OnKeyReleased(const ui::KeyEvent& event) OVERRIDE; |
139 virtual void ViewHierarchyChanged( | 139 virtual void ViewHierarchyChanged( |
140 const ViewHierarchyChangedDetails& details) OVERRIDE; | 140 const ViewHierarchyChangedDetails& details) OVERRIDE; |
141 virtual bool GetDropFormats( | 141 virtual bool GetDropFormats( |
142 int* formats, | 142 int* formats, |
143 std::set<OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; | 143 std::set<OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; |
144 virtual bool CanDrop(const OSExchangeData& data) OVERRIDE; | 144 virtual bool CanDrop(const OSExchangeData& data) OVERRIDE; |
145 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; | 145 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 | 544 |
545 // True if the drag_view_ item is a folder item being dragged for reparenting. | 545 // True if the drag_view_ item is a folder item being dragged for reparenting. |
546 bool dragging_for_reparent_item_; | 546 bool dragging_for_reparent_item_; |
547 | 547 |
548 DISALLOW_COPY_AND_ASSIGN(AppsGridView); | 548 DISALLOW_COPY_AND_ASSIGN(AppsGridView); |
549 }; | 549 }; |
550 | 550 |
551 } // namespace app_list | 551 } // namespace app_list |
552 | 552 |
553 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ | 553 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ |
OLD | NEW |