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

Unified Diff: chrome/browser/mac/dock.h

Issue 32563004: [mac] Support adding the launcher to the Dock when Dashboard.app is present. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/mac/dock.mm » ('j') | chrome/browser/web_applications/web_app_mac.mm » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/mac/dock.h
diff --git a/chrome/browser/mac/dock.h b/chrome/browser/mac/dock.h
index 34822ee052016b72a10ea60b8fb916e3369746f2..2e2bdd13a85dea1e9067ef3fcb55bb95197c1e56 100644
--- a/chrome/browser/mac/dock.h
+++ b/chrome/browser/mac/dock.h
@@ -13,6 +13,12 @@ class NSString;
namespace dock {
+enum AddIconStatus {
+ IconAddFailure,
+ IconAddSuccess,
+ IconAlreadyPresent
+};
+
// Adds an icon to the Dock pointing to |installed_path| if one is not already
// present. |dmg_app_path| is the path to the install source. Its tile will be
// removed if present. If any changes are made to the Dock's configuration,
@@ -49,7 +55,7 @@ namespace dock {
// additional properties on the dock tile added to the Dock's plist, this
// is not done. Upon relaunch, Dock.app will determine the correct values for
// the properties it requires and add them to its configuration.
-void AddIcon(NSString* installed_path, NSString* dmg_app_path);
+AddIconStatus AddIcon(NSString* installed_path, NSString* dmg_app_path);
} // namespace dock
« no previous file with comments | « no previous file | chrome/browser/mac/dock.mm » ('j') | chrome/browser/web_applications/web_app_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698