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

Side by Side Diff: ui/app_list/views/app_list_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_folder_view.cc ('k') | ui/app_list/views/app_list_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 (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_APP_LIST_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 void ShowWhenReady(); 73 void ShowWhenReady();
74 74
75 void Close(); 75 void Close();
76 76
77 void UpdateBounds(); 77 void UpdateBounds();
78 78
79 // Returns true if the app list should be centered and in landscape mode. 79 // Returns true if the app list should be centered and in landscape mode.
80 bool ShouldCenterWindow() const; 80 bool ShouldCenterWindow() const;
81 81
82 // Overridden from views::View: 82 // Overridden from views::View:
83 virtual gfx::Size GetPreferredSize() OVERRIDE; 83 virtual gfx::Size GetPreferredSize() const OVERRIDE;
84 virtual void Paint(gfx::Canvas* canvas, 84 virtual void Paint(gfx::Canvas* canvas,
85 const views::CullSet& cull_set) OVERRIDE; 85 const views::CullSet& cull_set) OVERRIDE;
86 virtual void OnThemeChanged() OVERRIDE; 86 virtual void OnThemeChanged() OVERRIDE;
87 87
88 // WidgetDelegate overrides: 88 // WidgetDelegate overrides:
89 virtual bool ShouldHandleSystemCommands() const OVERRIDE; 89 virtual bool ShouldHandleSystemCommands() const OVERRIDE;
90 90
91 // Overridden from AppListViewDelegateObserver: 91 // Overridden from AppListViewDelegateObserver:
92 virtual void OnProfilesChanged() OVERRIDE; 92 virtual void OnProfilesChanged() OVERRIDE;
93 93
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 // For UMA and testing. If non-null, triggered when the app list is painted. 155 // For UMA and testing. If non-null, triggered when the app list is painted.
156 base::Closure next_paint_callback_; 156 base::Closure next_paint_callback_;
157 157
158 DISALLOW_COPY_AND_ASSIGN(AppListView); 158 DISALLOW_COPY_AND_ASSIGN(AppListView);
159 }; 159 };
160 160
161 } // namespace app_list 161 } // namespace app_list
162 162
163 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ 163 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/app_list_folder_view.cc ('k') | ui/app_list/views/app_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698