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

Unified Diff: chrome/browser/views/new_profile_dialog.h

Issue 12895: Chromium-MultiProfile-Prototype... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years 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/views/browser_views.vcproj ('k') | chrome/browser/views/new_profile_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/new_profile_dialog.h
===================================================================
--- chrome/browser/views/new_profile_dialog.h (revision 0)
+++ chrome/browser/views/new_profile_dialog.h (revision 0)
@@ -0,0 +1,59 @@
+// Copyright (c) 2006-2008 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.
+//
+// A dialog box that prompts the user to enter a profile name, and opens a new
+// window in that profile.
+
+#ifndef CHROME_BROWSER_VIEWS_NEW_PROFILE_DIALOG_H_
+#define CHROME_BROWSER_VIEWS_NEW_PROFILE_DIALOG_H_
+
+#include "base/basictypes.h"
+#include "base/message_loop.h"
+#include "chrome/browser/shell_dialogs.h"
+#include "chrome/views/dialog_delegate.h"
+#include "chrome/views/text_field.h"
+
+class MessageBoxView;
+namespace views {
+class View;
+class Window;
+}
+
+// Dialog that prompts the user to create a new profile.
+class NewProfileDialog : public views::DialogDelegate,
+ public views::TextField::Controller {
+ public:
+ // Creates and runs the dialog.
+ static void RunDialog();
+ virtual ~NewProfileDialog();
+
+ // views::DialogDelegate methods.
+ virtual bool Accept();
+ virtual int GetDialogButtons() const;
+ virtual views::View* GetInitiallyFocusedView() const;
+ virtual bool IsDialogButtonEnabled(DialogButton button) const;
+ virtual std::wstring GetWindowTitle() const;
+ virtual void WindowClosing();
+
+ // views::TextField::Controller methods.
+ virtual void ContentsChanged(views::TextField* sender,
+ const std::wstring& new_contents);
+ virtual void HandleKeystroke(views::TextField* sender,
+ UINT message, TCHAR key, UINT repeat_count,
+ UINT flags) {}
+
+ // views::WindowDelegate methods.
+ virtual views::View* GetContentsView();
+ virtual bool IsAlwaysOnTop() const { return false; }
+ virtual bool IsModal() const { return false; }
+
+ private:
+ NewProfileDialog();
+
+ MessageBoxView* message_box_view_;
+
+ DISALLOW_COPY_AND_ASSIGN(NewProfileDialog);
+};
+
+#endif // CHROME_BROWSER_VIEWS_NEW_PROFILE_DIALOG_H_
Property changes on: chrome\browser\views\new_profile_dialog.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/views/browser_views.vcproj ('k') | chrome/browser/views/new_profile_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698