OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |