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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/profiles/profile_window.h" | 14 #include "chrome/browser/profiles/profile_window.h" |
15 #include "ui/views/window/dialog_delegate.h" | 15 #include "ui/views/window/dialog_delegate.h" |
16 | 16 |
17 class AutoKeepAlive; | 17 class ScopedKeepAlive; |
18 | 18 |
19 namespace views { | 19 namespace views { |
20 class WebView; | 20 class WebView; |
21 } | 21 } |
22 | 22 |
23 // Dialog widget that contains the Desktop User Manager webui. | 23 // Dialog widget that contains the Desktop User Manager webui. |
24 class UserManagerView : public views::DialogDelegateView { | 24 class UserManagerView : public views::DialogDelegateView { |
25 public: | 25 public: |
26 // Do not call directly. To display the User Manager, use UserManager::Show(). | 26 // Do not call directly. To display the User Manager, use UserManager::Show(). |
27 UserManagerView(); | 27 UserManagerView(); |
(...skipping 29 matching lines...) Expand all Loading... |
57 bool CanResize() const override; | 57 bool CanResize() const override; |
58 bool CanMaximize() const override; | 58 bool CanMaximize() const override; |
59 bool CanMinimize() const override; | 59 bool CanMinimize() const override; |
60 base::string16 GetWindowTitle() const override; | 60 base::string16 GetWindowTitle() const override; |
61 int GetDialogButtons() const override; | 61 int GetDialogButtons() const override; |
62 void WindowClosing() override; | 62 void WindowClosing() override; |
63 bool UseNewStyleForThisDialog() const override; | 63 bool UseNewStyleForThisDialog() const override; |
64 | 64 |
65 views::WebView* web_view_; | 65 views::WebView* web_view_; |
66 | 66 |
67 scoped_ptr<AutoKeepAlive> keep_alive_; | 67 scoped_ptr<ScopedKeepAlive> keep_alive_; |
68 base::Time user_manager_started_showing_; | 68 base::Time user_manager_started_showing_; |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(UserManagerView); | 70 DISALLOW_COPY_AND_ASSIGN(UserManagerView); |
71 }; | 71 }; |
72 | 72 |
73 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_USER_MANAGER_VIEW_H_ | 73 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_USER_MANAGER_VIEW_H_ |
OLD | NEW |