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

Unified Diff: chrome/browser/ui/extensions/app_metro_infobar_delegate_win.h

Issue 22992003: Moved chrome/browser/ui/extensions apps code to chrome/browser/ui/apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win compile Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/extensions/app_metro_infobar_delegate_win.h
diff --git a/chrome/browser/ui/extensions/app_metro_infobar_delegate_win.h b/chrome/browser/ui/extensions/app_metro_infobar_delegate_win.h
deleted file mode 100644
index 1f625f71b3563a46f2deffd9f285941b0f4bbfe5..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/extensions/app_metro_infobar_delegate_win.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2013 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_EXTENSIONS_APP_METRO_INFOBAR_DELEGATE_WIN_H_
-#define CHROME_BROWSER_UI_EXTENSIONS_APP_METRO_INFOBAR_DELEGATE_WIN_H_
-
-#include <string>
-
-#include "chrome/browser/infobars/confirm_infobar_delegate.h"
-
-class InfoBarService;
-class Profile;
-
-// This infobar operates by opening a new tab on about:blank, showing an
-// infobar offering to relaunch the browser in metro mode, and then relaunching
-// in Desktop mode if confirmed.
-class AppMetroInfoBarDelegateWin : public ConfirmInfoBarDelegate {
- public:
- enum Mode {
- SHOW_APP_LIST,
- LAUNCH_PACKAGED_APP
- };
-
- // Creates an app metro infobar delegate, adds it to a new browser tab, then
- // activates Metro mode.
- static void Create(Profile* profile,
- Mode mode,
- const std::string& extension_id);
-
- private:
- AppMetroInfoBarDelegateWin(InfoBarService* infobar_service,
- Mode mode,
- const std::string& extension_id);
- virtual ~AppMetroInfoBarDelegateWin();
-
- // ConfirmInfoBarDelegate overrides:
- virtual int GetIconID() const OVERRIDE;
- virtual string16 GetMessageText() const OVERRIDE;
- virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
- virtual bool Accept() OVERRIDE;
- virtual bool Cancel() OVERRIDE;
- virtual string16 GetLinkText() const OVERRIDE;
- virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE;
-
- Mode mode_;
- std::string extension_id_;
-
- DISALLOW_COPY_AND_ASSIGN(AppMetroInfoBarDelegateWin);
-};
-
-#endif // CHROME_BROWSER_UI_EXTENSIONS_APP_METRO_INFOBAR_DELEGATE_WIN_H_
« no previous file with comments | « chrome/browser/ui/browser_command_controller.cc ('k') | chrome/browser/ui/extensions/app_metro_infobar_delegate_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698