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

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

Issue 226283003: Remove single-window-metro-mode code paths for the app launcher and apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Thought I deleted this already Created 6 years, 9 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/apps/app_metro_infobar_delegate_win.h
diff --git a/chrome/browser/ui/apps/app_metro_infobar_delegate_win.h b/chrome/browser/ui/apps/app_metro_infobar_delegate_win.h
deleted file mode 100644
index a38396ee4332fcf2f2996f2f87f5cf036b5d8cf1..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/apps/app_metro_infobar_delegate_win.h
+++ /dev/null
@@ -1,50 +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_APPS_APP_METRO_INFOBAR_DELEGATE_WIN_H_
-#define CHROME_BROWSER_UI_APPS_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 and delegate, adds the infobar to a new
- // browser tab, then activates Metro mode.
- static void Create(Profile* profile,
- Mode mode,
- const std::string& extension_id);
-
- private:
- AppMetroInfoBarDelegateWin(Mode mode, const std::string& extension_id);
- virtual ~AppMetroInfoBarDelegateWin();
-
- // ConfirmInfoBarDelegate overrides:
- virtual int GetIconID() const OVERRIDE;
- virtual base::string16 GetMessageText() const OVERRIDE;
- virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
- virtual bool Accept() OVERRIDE;
- virtual bool Cancel() OVERRIDE;
- virtual base::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_APPS_APP_METRO_INFOBAR_DELEGATE_WIN_H_
« no previous file with comments | « chrome/browser/ui/app_list/test/app_list_shower_unittest.cc ('k') | chrome/browser/ui/apps/app_metro_infobar_delegate_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698