1 // Copyright 2013 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.
5 #ifndef CHROME_BROWSER_UI_APPS_APP_METRO_INFOBAR_DELEGATE_WIN_H_
6 #define CHROME_BROWSER_UI_APPS_APP_METRO_INFOBAR_DELEGATE_WIN_H_
10 #include "chrome/browser/infobars/confirm_infobar_delegate.h"
15 // This infobar operates by opening a new tab on about:blank, showing an
16 // infobar offering to relaunch the browser in metro mode, and then relaunching
17 // in Desktop mode if confirmed.
18 class AppMetroInfoBarDelegateWin
: public ConfirmInfoBarDelegate
{
25 // Creates an app metro infobar and delegate, adds the infobar to a new
26 // browser tab, then activates Metro mode.
27 static void Create(Profile
* profile
,
29 const std::string
& extension_id
);
32 AppMetroInfoBarDelegateWin(Mode mode
, const std::string
& extension_id
);
33 virtual ~AppMetroInfoBarDelegateWin();
35 // ConfirmInfoBarDelegate overrides:
36 virtual int GetIconID() const OVERRIDE
;
37 virtual base::string16
GetMessageText() const OVERRIDE
;
38 virtual base::string16
GetButtonLabel(InfoBarButton button
) const OVERRIDE
;
39 virtual bool Accept() OVERRIDE
;
40 virtual bool Cancel() OVERRIDE
;
41 virtual base::string16
GetLinkText() const OVERRIDE
;
42 virtual bool LinkClicked(WindowOpenDisposition disposition
) OVERRIDE
;
45 std::string extension_id_
;
47 DISALLOW_COPY_AND_ASSIGN(AppMetroInfoBarDelegateWin
);
50 #endif // CHROME_BROWSER_UI_APPS_APP_METRO_INFOBAR_DELEGATE_WIN_H_