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

Side by Side Diff: chrome/browser/ui/views/profiles/user_manager_view.h

Issue 583603004: Add CanMinimize to classes that implement WidgetDelegate::CanMaximize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@win_resizable
Patch Set: Add TODO. Created 6 years, 3 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
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 Profile* guest_profile, 50 Profile* guest_profile,
51 const GURL& url); 51 const GURL& url);
52 52
53 // views::View: 53 // views::View:
54 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; 54 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE;
55 virtual gfx::Size GetPreferredSize() const OVERRIDE; 55 virtual gfx::Size GetPreferredSize() const OVERRIDE;
56 56
57 // views::DialogDelegateView: 57 // views::DialogDelegateView:
58 virtual bool CanResize() const OVERRIDE; 58 virtual bool CanResize() const OVERRIDE;
59 virtual bool CanMaximize() const OVERRIDE; 59 virtual bool CanMaximize() const OVERRIDE;
60 virtual bool CanMinimize() const OVERRIDE;
60 virtual base::string16 GetWindowTitle() const OVERRIDE; 61 virtual base::string16 GetWindowTitle() const OVERRIDE;
61 virtual int GetDialogButtons() const OVERRIDE; 62 virtual int GetDialogButtons() const OVERRIDE;
62 virtual void WindowClosing() OVERRIDE; 63 virtual void WindowClosing() OVERRIDE;
63 virtual bool UseNewStyleForThisDialog() const OVERRIDE; 64 virtual bool UseNewStyleForThisDialog() const OVERRIDE;
64 65
65 views::WebView* web_view_; 66 views::WebView* web_view_;
66 67
67 scoped_ptr<AutoKeepAlive> keep_alive_; 68 scoped_ptr<AutoKeepAlive> keep_alive_;
68 // An open User Manager window. There can only be one open at a time. This 69 // An open User Manager window. There can only be one open at a time. This
69 // is reset to NULL when the window is closed. 70 // is reset to NULL when the window is closed.
70 static UserManagerView* instance_; 71 static UserManagerView* instance_;
71 72
72 DISALLOW_COPY_AND_ASSIGN(UserManagerView); 73 DISALLOW_COPY_AND_ASSIGN(UserManagerView);
73 }; 74 };
74 75
75 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_USER_MANAGER_VIEW_H_ 76 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_USER_MANAGER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/panels/panel_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