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

Side by Side Diff: ash/launcher/launcher_delegate.h

Issue 14533006: Drag and drop between app list and launcher - First patch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_LAUNCHER_LAUNCHER_DELEGATE_H_ 5 #ifndef ASH_LAUNCHER_LAUNCHER_DELEGATE_H_
6 #define ASH_LAUNCHER_LAUNCHER_DELEGATE_H_ 6 #define ASH_LAUNCHER_LAUNCHER_DELEGATE_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/launcher/launcher_types.h" 9 #include "ash/launcher/launcher_types.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // Callback used to allow delegate to perform initialization actions that 99 // Callback used to allow delegate to perform initialization actions that
100 // depend on the Launcher being in a known state. 100 // depend on the Launcher being in a known state.
101 virtual void OnLauncherCreated(Launcher* launcher) = 0; 101 virtual void OnLauncherCreated(Launcher* launcher) = 0;
102 102
103 // Callback used to inform the delegate that a specific launcher no longer 103 // Callback used to inform the delegate that a specific launcher no longer
104 // exists. 104 // exists.
105 virtual void OnLauncherDestroyed(Launcher* launcher) = 0; 105 virtual void OnLauncherDestroyed(Launcher* launcher) = 0;
106 106
107 // True if the running launcher is the per application launcher. 107 // True if the running launcher is the per application launcher.
108 virtual bool IsPerAppLauncher() = 0; 108 virtual bool IsPerAppLauncher() = 0;
109
110 // Get the launcher ID from an application ID.
111 virtual LauncherID GetLauncherIDForAppID(const std::string& app_id) = 0;
112
113 // Pins an app with |app_id| to launcher. A running instance will get pinned.
114 // In case there is no running instance a new launcher item is created and
115 // pinned.
116 virtual void PinAppWithID(const std::string& app_id) = 0;
117
118 // Unpins any app item(s) whose id is |app_id|. The new launcher will collect
119 // all items under one item, the old launcher might have multiple items.
120 virtual void UnpinAppsWithID(const std::string& app_id) = 0;
109 }; 121 };
110 122
111 } // namespace ash 123 } // namespace ash
112 124
113 #endif // ASH_LAUNCHER_LAUNCHER_DELEGATE_H_ 125 #endif // ASH_LAUNCHER_LAUNCHER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698