Chromium Code Reviews| Index: chrome/browser/ui/webui/set_as_metro_default_ui.h |
| diff --git a/chrome/browser/ui/webui/set_as_metro_default_ui.h b/chrome/browser/ui/webui/set_as_metro_default_ui.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..048dc1d7dae6176a5a78dca9c9fbfc8cf1abdced |
| --- /dev/null |
| +++ b/chrome/browser/ui/webui/set_as_metro_default_ui.h |
| @@ -0,0 +1,28 @@ |
| +// Copyright (c) 2012 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_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
|
| +#define CHROME_BROWSER_UI_WEBUI_SET_AS_METRO_DEFAULT_UI_H_ |
| +#pragma once |
| + |
| +#include "content/public/browser/web_ui_controller.h" |
| + |
| +class Browser; |
| +class Profile; |
| + |
| +// The UI used in first-run flow to prompt the user to set Chrome as the |
| +// default Windows browser and *the browser* of Metro mode. Intended for |
| +// Windows 8 only. |
| +class SetAsMetroDefaultUI : public content::WebUIController { |
| + public: |
| + explicit SetAsMetroDefaultUI(content::WebUI* web_ui); |
| + |
| + // Present metroizer UI either in a new singleton tab or in a dialog window. |
| + static void Show(Profile* profile, Browser* browser, bool dialog); |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(SetAsMetroDefaultUI); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_WEBUI_SET_AS_METRO_DEFAULT_UI_H_ |