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

Side by Side Diff: chrome/browser/ui/webui/set_as_default_browser_ui.h

Issue 10696093: Hide the main window when Set-As-Default dialog is present. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved close/reshow code to the dialog delegate. Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WEBUI_SET_AS_DEFAULT_BROWSER_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SET_AS_DEFAULT_BROWSER_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_SET_AS_DEFAULT_BROWSER_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SET_AS_DEFAULT_BROWSER_UI_H_
7 7
8 #include "content/public/browser/web_ui_controller.h" 8 #include "ui/web_dialogs/web_dialog_ui.h"
9 9
10 class Browser; 10 class Browser;
11 class Profile; 11 class Profile;
12 12
13 // The UI used in first-run flow to prompt the user to set Chrome as the 13 // The UI used in first-run flow to prompt the user to set Chrome as the
14 // default Windows browser and *the browser* of Metro mode. Intended for 14 // default Windows browser and *the browser* of Metro mode. Intended for
15 // Windows 8 only. 15 // Windows 8 only.
16 class SetAsDefaultBrowserUI : public content::WebUIController { 16 class SetAsDefaultBrowserUI : public ui::WebDialogUI {
17 public: 17 public:
18 explicit SetAsDefaultBrowserUI(content::WebUI* web_ui); 18 explicit SetAsDefaultBrowserUI(content::WebUI* web_ui);
19 19
20 // Present metroizer UI either in a new singleton tab or in a dialog window. 20 // Present metroizer UI either in a new singleton tab or in a dialog window.
21 static void Show(Profile* profile, Browser* browser); 21 static void Show(Profile* profile, Browser* browser);
22 22
23 private: 23 private:
24 DISALLOW_COPY_AND_ASSIGN(SetAsDefaultBrowserUI); 24 DISALLOW_COPY_AND_ASSIGN(SetAsDefaultBrowserUI);
25 }; 25 };
26 26
27 #endif // CHROME_BROWSER_UI_WEBUI_SET_AS_DEFAULT_BROWSER_UI_H_ 27 #endif // CHROME_BROWSER_UI_WEBUI_SET_AS_DEFAULT_BROWSER_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698