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

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

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 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 unified diff | Download patch
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_WIN_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SET_AS_DEFAULT_BROWSER_UI_WIN_H_
6 #define CHROME_BROWSER_UI_WEBUI_SET_AS_DEFAULT_BROWSER_UI_WIN_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SET_AS_DEFAULT_BROWSER_UI_WIN_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/web_dialogs/web_dialog_ui.h" 9 #include "ui/web_dialogs/web_dialog_ui.h"
10 10
11 class Browser;
12 class Profile; 11 class Profile;
13 12
14 namespace views { 13 namespace views {
15 class Widget; 14 class Widget;
16 } 15 }
17 16
18 // The UI used in first-run flow to prompt the user to set Chrome as the 17 // The UI used in first-run flow to prompt the user to set Chrome as the
19 // default Windows browser and *the browser* of Metro mode. Intended for 18 // default Windows browser and *the browser* of Metro mode. Intended for
20 // Windows 8 only. 19 // Windows 8 only.
21 class SetAsDefaultBrowserUI : public ui::WebDialogUI { 20 class SetAsDefaultBrowserUI : public ui::WebDialogUI {
22 public: 21 public:
23 explicit SetAsDefaultBrowserUI(content::WebUI* web_ui); 22 explicit SetAsDefaultBrowserUI(content::WebUI* web_ui);
24 23
25 // Present metroizer UI either in a new singleton tab or in a dialog window. 24 // Present metroizer UI either in a new singleton tab or in a dialog window.
26 static void Show(Profile* profile); 25 static void Show(Profile* profile);
27 26
28 // Returns the web dialog widget for testing. 27 // Returns the web dialog widget for testing.
29 static views::Widget* GetDialogWidgetForTesting(); 28 static views::Widget* GetDialogWidgetForTesting();
30 29
31 private: 30 private:
32 DISALLOW_COPY_AND_ASSIGN(SetAsDefaultBrowserUI); 31 DISALLOW_COPY_AND_ASSIGN(SetAsDefaultBrowserUI);
33 }; 32 };
34 33
35 #endif // CHROME_BROWSER_UI_WEBUI_SET_AS_DEFAULT_BROWSER_UI_WIN_H_ 34 #endif // CHROME_BROWSER_UI_WEBUI_SET_AS_DEFAULT_BROWSER_UI_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/print_preview/sticky_settings.h ('k') | chrome/browser/ui/webui/settings/browser_lifetime_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698