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

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

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/app_list/views/app_list_view.cc ('k') | ui/app_list/views/apps_container_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CONTAINER_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_APPS_CONTAINER_VIEW_H_
6 #define UI_APP_LIST_VIEWS_APPS_CONTAINER_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_APPS_CONTAINER_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/app_list/app_list_folder_item.h" 10 #include "ui/app_list/app_list_folder_item.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 ApplicationDragAndDropHost* drag_and_drop_host); 57 ApplicationDragAndDropHost* drag_and_drop_host);
58 58
59 // Transits the UI from folder view to root lelve apps grid view when 59 // Transits the UI from folder view to root lelve apps grid view when
60 // re-parenting a child item of |folder_item|. 60 // re-parenting a child item of |folder_item|.
61 void ReparentFolderItemTransit(AppListFolderItem* folder_item); 61 void ReparentFolderItemTransit(AppListFolderItem* folder_item);
62 62
63 // Returns true if it is currently showing an active folder page. 63 // Returns true if it is currently showing an active folder page.
64 bool IsInFolderView() const; 64 bool IsInFolderView() const;
65 65
66 // views::View overrides: 66 // views::View overrides:
67 virtual gfx::Size GetPreferredSize() OVERRIDE; 67 virtual gfx::Size GetPreferredSize() const OVERRIDE;
68 virtual void Layout() OVERRIDE; 68 virtual void Layout() OVERRIDE;
69 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; 69 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE;
70 70
71 // TopIconAnimationObserver overrides: 71 // TopIconAnimationObserver overrides:
72 virtual void OnTopIconAnimationsComplete() OVERRIDE; 72 virtual void OnTopIconAnimationsComplete() OVERRIDE;
73 73
74 AppsGridView* apps_grid_view() { return apps_grid_view_; } 74 AppsGridView* apps_grid_view() { return apps_grid_view_; }
75 FolderBackgroundView* folder_background_view() { 75 FolderBackgroundView* folder_background_view() {
76 return folder_background_view_; 76 return folder_background_view_;
77 } 77 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 size_t top_icon_animation_pending_count_; 113 size_t top_icon_animation_pending_count_;
114 114
115 DISALLOW_COPY_AND_ASSIGN(AppsContainerView); 115 DISALLOW_COPY_AND_ASSIGN(AppsContainerView);
116 }; 116 };
117 117
118 } // namespace app_list 118 } // namespace app_list
119 119
120 120
121 #endif // UI_APP_LIST_VIEWS_APPS_CONTAINER_VIEW_H_ 121 #endif // UI_APP_LIST_VIEWS_APPS_CONTAINER_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/app_list_view.cc ('k') | ui/app_list/views/apps_container_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698