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

Unified Diff: chrome/browser/ui/views/user_manager_view.h

Issue 229293002: [Win] Move profile related UI from ui/views/ to ui/views/profiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/profiles/user_manager_view.cc ('k') | chrome/browser/ui/views/user_manager_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/user_manager_view.h
diff --git a/chrome/browser/ui/views/user_manager_view.h b/chrome/browser/ui/views/user_manager_view.h
deleted file mode 100644
index 00021f3b1dd8a7e3c64c728a09a122fc559ac175..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/user_manager_view.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_VIEWS_USER_MANAGER_VIEW_H_
-#define CHROME_BROWSER_UI_VIEWS_USER_MANAGER_VIEW_H_
-
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/profiles/profile_window.h"
-#include "ui/views/window/dialog_delegate.h"
-
-class AutoKeepAlive;
-
-namespace views {
-class WebView;
-}
-
-// Dialog widget that contains the Desktop User Manager webui.
-class UserManagerView : public views::DialogDelegateView {
- public:
- // Shows the User Manager or re-activates an existing one, focusing the
- // profile given by |profile_path_to_focus|. Based on the value of
- // |tutorial_mode|, a tutorial could be shown, in which case
- // |profile_path_to_focus| is ignored.
- static void Show(const base::FilePath& profile_path_to_focus,
- profiles::UserManagerTutorialMode tutorial_mode);
-
- // Hide the User Manager.
- static void Hide();
-
- // Returns whether or not the User Manager is showing.
- static bool IsShowing();
-
- private:
- explicit UserManagerView(Profile* profile);
- virtual ~UserManagerView();
-
- // Creates a new UserManagerView instance for the |guest_profile| and
- // shows the |url|.
- static void OnGuestProfileCreated(Profile* guest_profile,
- const std::string& url);
-
- // views::View:
- virtual gfx::Size GetPreferredSize() OVERRIDE;
-
- // views::DialogDelegateView:
- virtual bool CanResize() const OVERRIDE;
- virtual bool CanMaximize() const OVERRIDE;
- virtual base::string16 GetWindowTitle() const OVERRIDE;
- virtual int GetDialogButtons() const OVERRIDE;
- virtual void WindowClosing() OVERRIDE;
- virtual bool UseNewStyleForThisDialog() const OVERRIDE;
-
- views::WebView* web_view_;
-
- scoped_ptr<AutoKeepAlive> keep_alive_;
- // An open User Manager window. There can only be one open at a time. This
- // is reset to NULL when the window is closed.
- static UserManagerView* instance_;
-
- DISALLOW_COPY_AND_ASSIGN(UserManagerView);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_USER_MANAGER_VIEW_H_
« no previous file with comments | « chrome/browser/ui/views/profiles/user_manager_view.cc ('k') | chrome/browser/ui/views/user_manager_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698