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

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: Rebase to 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
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/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "ui/app_list/app_list_export.h" 10 #include "ui/app_list/app_list_export.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void ShowWhenReady(); 72 void ShowWhenReady();
73 73
74 void Close(); 74 void Close();
75 75
76 void UpdateBounds(); 76 void UpdateBounds();
77 77
78 // Returns true if the app list should be centered and in landscape mode. 78 // Returns true if the app list should be centered and in landscape mode.
79 bool ShouldCenterWindow() const; 79 bool ShouldCenterWindow() const;
80 80
81 // Overridden from views::View: 81 // Overridden from views::View:
82 virtual gfx::Size GetPreferredSize() OVERRIDE; 82 virtual gfx::Size GetPreferredSize() const OVERRIDE;
83 virtual void Paint(gfx::Canvas* canvas, 83 virtual void Paint(gfx::Canvas* canvas,
84 const views::CullSet& cull_set) OVERRIDE; 84 const views::CullSet& cull_set) OVERRIDE;
85 virtual void OnThemeChanged() OVERRIDE; 85 virtual void OnThemeChanged() OVERRIDE;
86 86
87 // WidgetDelegate overrides: 87 // WidgetDelegate overrides:
88 virtual bool ShouldHandleSystemCommands() const OVERRIDE; 88 virtual bool ShouldHandleSystemCommands() const OVERRIDE;
89 89
90 // Overridden from AppListViewDelegateObserver: 90 // Overridden from AppListViewDelegateObserver:
91 virtual void OnProfilesChanged() OVERRIDE; 91 virtual void OnProfilesChanged() OVERRIDE;
92 92
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 ObserverList<AppListViewObserver> observers_; 151 ObserverList<AppListViewObserver> observers_;
152 scoped_ptr<HideViewAnimationObserver> animation_observer_; 152 scoped_ptr<HideViewAnimationObserver> animation_observer_;
153 153
154 DISALLOW_COPY_AND_ASSIGN(AppListView); 154 DISALLOW_COPY_AND_ASSIGN(AppListView);
155 }; 155 };
156 156
157 } // namespace app_list 157 } // namespace app_list
158 158
159 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ 159 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698