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

Side by Side Diff: chrome/browser/ui/views/profiles/user_manager_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
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 CHROME_BROWSER_UI_VIEWS_PROFILES_USER_MANAGER_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_USER_MANAGER_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_USER_MANAGER_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_USER_MANAGER_VIEW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/profiles/profile_window.h" 10 #include "chrome/browser/profiles/profile_window.h"
(...skipping 30 matching lines...) Expand all
41 // Creates a new UserManagerView instance for the |guest_profile| and 41 // Creates a new UserManagerView instance for the |guest_profile| and
42 // shows the |url|. 42 // shows the |url|.
43 static void OnGuestProfileCreated(scoped_ptr<UserManagerView> instance, 43 static void OnGuestProfileCreated(scoped_ptr<UserManagerView> instance,
44 Profile* guest_profile, 44 Profile* guest_profile,
45 const std::string& url); 45 const std::string& url);
46 46
47 // Creates dialog and initializes UI. 47 // Creates dialog and initializes UI.
48 void Init(Profile* guest_profile, const GURL& url); 48 void Init(Profile* guest_profile, const GURL& url);
49 49
50 // views::View: 50 // views::View:
51 virtual gfx::Size GetPreferredSize() OVERRIDE; 51 virtual gfx::Size GetPreferredSize() const OVERRIDE;
52 52
53 // views::DialogDelegateView: 53 // views::DialogDelegateView:
54 virtual bool CanResize() const OVERRIDE; 54 virtual bool CanResize() const OVERRIDE;
55 virtual bool CanMaximize() const OVERRIDE; 55 virtual bool CanMaximize() const OVERRIDE;
56 virtual base::string16 GetWindowTitle() const OVERRIDE; 56 virtual base::string16 GetWindowTitle() const OVERRIDE;
57 virtual int GetDialogButtons() const OVERRIDE; 57 virtual int GetDialogButtons() const OVERRIDE;
58 virtual void WindowClosing() OVERRIDE; 58 virtual void WindowClosing() OVERRIDE;
59 virtual bool UseNewStyleForThisDialog() const OVERRIDE; 59 virtual bool UseNewStyleForThisDialog() const OVERRIDE;
60 60
61 views::WebView* web_view_; 61 views::WebView* web_view_;
62 62
63 scoped_ptr<AutoKeepAlive> keep_alive_; 63 scoped_ptr<AutoKeepAlive> keep_alive_;
64 // An open User Manager window. There can only be one open at a time. This 64 // An open User Manager window. There can only be one open at a time. This
65 // is reset to NULL when the window is closed. 65 // is reset to NULL when the window is closed.
66 static UserManagerView* instance_; 66 static UserManagerView* instance_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(UserManagerView); 68 DISALLOW_COPY_AND_ASSIGN(UserManagerView);
69 }; 69 };
70 70
71 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_USER_MANAGER_VIEW_H_ 71 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_USER_MANAGER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/profiles/profile_chooser_view.cc ('k') | chrome/browser/ui/views/profiles/user_manager_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698