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

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: 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // Returns true if a tooltip should be shown for the item. 89 // Returns true if a tooltip should be shown for the item.
90 virtual bool ShouldShowTooltip(const LauncherItem& item) = 0; 90 virtual bool ShouldShowTooltip(const LauncherItem& item) = 0;
91 91
92 // Callback used to allow delegate to perform initialization actions that 92 // Callback used to allow delegate to perform initialization actions that
93 // depend on the Launcher being in a known state. 93 // depend on the Launcher being in a known state.
94 virtual void OnLauncherCreated(Launcher* launcher) = 0; 94 virtual void OnLauncherCreated(Launcher* launcher) = 0;
95 95
96 // Callback used to inform the delegate that a specific launcher no longer 96 // Callback used to inform the delegate that a specific launcher no longer
97 // exists. 97 // exists.
98 virtual void OnLauncherDestroyed(Launcher* launcher) = 0; 98 virtual void OnLauncherDestroyed(Launcher* launcher) = 0;
99
100 // Get the launcher ID from an application ID.
101 virtual LauncherID GetLauncherIDForAppID(const std::string& app_id) = 0;
102
103 // Pins an app with |app_id| to launcher. If there is a running instance in
James Cook 2013/04/29 22:08:29 nice comment
Mr4D (OOO till 08-26) 2013/04/30 16:59:01 Okay, changed comment.
104 // launcher, the running instance is pinned. If there is no running instance,
105 // a new launcher item is created and pinned.
106 virtual void PinAppWithID(const std::string& app_id) = 0;
107
108 // Unpins any app items whose id is |app_id|.
James Cook 2013/04/29 22:08:29 Consider explaining why there might be more than o
Mr4D (OOO till 08-26) 2013/04/30 16:59:01 Done.
109 virtual void UnpinAppsWithID(const std::string& app_id) = 0;
110
99 }; 111 };
100 112
101 } // namespace ash 113 } // namespace ash
102 114
103 #endif // ASH_LAUNCHER_LAUNCHER_DELEGATE_H_ 115 #endif // ASH_LAUNCHER_LAUNCHER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698