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

Unified Diff: chrome/browser/ui/app_list/app_list_controller.h

Issue 11834002: app_list: Split app_list_controller.* into two smaller parts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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/app_list/app_list_controller.h
diff --git a/chrome/browser/ui/app_list/app_list_controller.h b/chrome/browser/ui/app_list/app_list_controller.h
deleted file mode 100644
index 082f5371dd28a6d95a80e5e8f79a1cfc9a4a4e6f..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/app_list/app_list_controller.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// 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_APP_LIST_APP_LIST_CONTROLLER_H_
-#define CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_H_
-
-#include <string>
-
-class Profile;
-
-// Interface to allow the view delegate to call out to whatever is controlling
-// the app list. This will have different implementations for different
-// platforms.
-class AppListControllerDelegate {
- public:
- virtual ~AppListControllerDelegate();
-
- // Dismisses the view.
- virtual void DismissView() = 0;
-
- // Handle the view being closed.
- virtual void ViewClosing();
-
- // Handle the view being activated or deactivated.
- virtual void ViewActivationChanged(bool active);
-
- // Control of pinning apps.
- virtual bool IsAppPinned(const std::string& extension_id);
- virtual void PinApp(const std::string& extension_id);
- virtual void UnpinApp(const std::string& extension_id);
- virtual bool CanPin() = 0;
-
- // Be aware of the extension uninstalling flow.
- virtual void AboutToUninstallApp() {}
- virtual void UninstallAppCompleted() {}
-
- // Whether the controller supports showing the Create Shortcuts dialog.
- virtual bool CanShowCreateShortcutsDialog() = 0;
- virtual void ShowCreateShortcutsDialog(Profile* profile,
- const std::string& extension_id);
-
- // Handle the "create window" context menu items of Chrome App.
- // |incognito| is true to create an incognito window.
- virtual void CreateNewWindow(bool incognito);
-
- // Show the app's most recent window, or launch it if it is not running.
- virtual void ActivateApp(Profile* profile,
- const std::string& extension_id,
- int event_flags) = 0;
-
- // Launch the app.
- virtual void LaunchApp(Profile* profile,
- const std::string& extension_id,
- int event_flags) = 0;
-};
-
-namespace app_list_controller {
-
-// Do any once off initialization needed for the app list.
-void InitAppList();
-
-// Show the app list.
-void ShowAppList();
-
-} // namespace app_list_controller
-
-#endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_H_
« no previous file with comments | « chrome/browser/extensions/extension_install_ui_default.cc ('k') | chrome/browser/ui/app_list/app_list_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698