Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_SET_AS_METRO_DEFAULT_UI_H_ | |
|
grt (UTC plus 2)
2012/06/21 23:12:08
SetAsMetroDefaultUI -> SetAsDefaultBrowserUI or so
motek.
2012/06/22 16:42:13
We also explicitly restart the program in Metro mo
| |
| 6 #define CHROME_BROWSER_UI_WEBUI_SET_AS_METRO_DEFAULT_UI_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "content/public/browser/web_ui_controller.h" | |
| 10 | |
| 11 class Browser; | |
| 12 class Profile; | |
| 13 | |
| 14 // The UI used in first-run flow to prompt the user to set Chrome as the | |
| 15 // default Windows browser and *the browser* of Metro mode. Intended for | |
| 16 // Windows 8 only. | |
| 17 class SetAsMetroDefaultUI : public content::WebUIController { | |
| 18 public: | |
| 19 explicit SetAsMetroDefaultUI(content::WebUI* web_ui); | |
| 20 | |
| 21 // Present metroizer UI either in a new singleton tab or in a dialog window. | |
| 22 static void Show(Profile* profile, Browser* browser, bool dialog); | |
| 23 | |
| 24 private: | |
| 25 DISALLOW_COPY_AND_ASSIGN(SetAsMetroDefaultUI); | |
| 26 }; | |
| 27 | |
| 28 #endif // CHROME_BROWSER_UI_WEBUI_SET_AS_METRO_DEFAULT_UI_H_ | |
| OLD | NEW |