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

Side by Side Diff: ash/system/user/user_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 | « ash/system/user/user_card_view.cc ('k') | ash/system/user/user_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ASH_SYSTEM_USER_USER_VIEW_H_ 5 #ifndef ASH_SYSTEM_USER_USER_VIEW_H_
6 #define ASH_SYSTEM_USER_USER_VIEW_H_ 6 #define ASH_SYSTEM_USER_USER_VIEW_H_
7 7
8 #include "ash/session/session_state_delegate.h" 8 #include "ash/session/session_state_delegate.h"
9 #include "ash/system/tray/tray_constants.h" 9 #include "ash/system/tray/tray_constants.h"
10 #include "ash/system/user/login_status.h" 10 #include "ash/system/user/login_status.h"
(...skipping 28 matching lines...) Expand all
39 virtual ~UserView(); 39 virtual ~UserView();
40 40
41 // Overridden from MouseWatcherListener: 41 // Overridden from MouseWatcherListener:
42 virtual void MouseMovedOutOfHost() OVERRIDE; 42 virtual void MouseMovedOutOfHost() OVERRIDE;
43 43
44 TrayUser::TestState GetStateForTest() const; 44 TrayUser::TestState GetStateForTest() const;
45 gfx::Rect GetBoundsInScreenOfUserButtonForTest(); 45 gfx::Rect GetBoundsInScreenOfUserButtonForTest();
46 46
47 private: 47 private:
48 // Overridden from views::View. 48 // Overridden from views::View.
49 virtual gfx::Size GetPreferredSize() OVERRIDE; 49 virtual gfx::Size GetPreferredSize() const OVERRIDE;
50 virtual int GetHeightForWidth(int width) OVERRIDE; 50 virtual int GetHeightForWidth(int width) const OVERRIDE;
51 virtual void Layout() OVERRIDE; 51 virtual void Layout() OVERRIDE;
52 52
53 // Overridden from views::ButtonListener. 53 // Overridden from views::ButtonListener.
54 virtual void ButtonPressed(views::Button* sender, 54 virtual void ButtonPressed(views::Button* sender,
55 const ui::Event& event) OVERRIDE; 55 const ui::Event& event) OVERRIDE;
56 56
57 void AddLogoutButton(user::LoginStatus login); 57 void AddLogoutButton(user::LoginStatus login);
58 void AddUserCard(user::LoginStatus login); 58 void AddUserCard(user::LoginStatus login);
59 59
60 // Create the menu option to add another user. If |disabled| is set the user 60 // Create the menu option to add another user. If |disabled| is set the user
(...skipping 24 matching lines...) Expand all
85 // The mouse watcher which takes care of out of window hover events. 85 // The mouse watcher which takes care of out of window hover events.
86 scoped_ptr<views::MouseWatcher> mouse_watcher_; 86 scoped_ptr<views::MouseWatcher> mouse_watcher_;
87 87
88 DISALLOW_COPY_AND_ASSIGN(UserView); 88 DISALLOW_COPY_AND_ASSIGN(UserView);
89 }; 89 };
90 90
91 } // namespace tray 91 } // namespace tray
92 } // namespace ash 92 } // namespace ash
93 93
94 #endif // ASH_SYSTEM_USER_USER_VIEW_H_ 94 #endif // ASH_SYSTEM_USER_USER_VIEW_H_
OLDNEW
« no previous file with comments | « ash/system/user/user_card_view.cc ('k') | ash/system/user/user_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698