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

Side by Side Diff: chrome/browser/web_applications/web_app_mac.h

Issue 12912003: [mac] Create app shortcuts in a subfolder of /Applications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fail if dirname of chrome apps dir doesn't exist or isn't a directory. Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/web_applications/web_app_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_ 5 #ifndef CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_
6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_ 6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 25 matching lines...) Expand all
36 36
37 // Copies the app launcher template into place and fills in all relevant 37 // Copies the app launcher template into place and fills in all relevant
38 // information. 38 // information.
39 bool CreateShortcut(); 39 bool CreateShortcut();
40 40
41 protected: 41 protected:
42 // Returns a path to the app loader. 42 // Returns a path to the app loader.
43 base::FilePath GetAppLoaderPath() const; 43 base::FilePath GetAppLoaderPath() const;
44 44
45 // Returns a path to the destination where the app should be written to. 45 // Returns a path to the destination where the app should be written to.
46 virtual base::FilePath GetDestinationPath( 46 virtual base::FilePath GetDestinationPath() const;
47 const base::FilePath& app_file_name) const;
48 47
49 // Updates the plist inside |app_path| with information about the app. 48 // Updates the plist inside |app_path| with information about the app.
50 bool UpdatePlist(const base::FilePath& app_path) const; 49 bool UpdatePlist(const base::FilePath& app_path) const;
51 50
52 // Updates the icon for the shortcut. 51 // Updates the icon for the shortcut.
53 bool UpdateIcon(const base::FilePath& app_path) const; 52 bool UpdateIcon(const base::FilePath& app_path) const;
54 53
55 private: 54 private:
56 FRIEND_TEST_ALL_PREFIXES(WebAppShortcutCreatorTest, UpdateIcon); 55 FRIEND_TEST_ALL_PREFIXES(WebAppShortcutCreatorTest, UpdateIcon);
57 56
(...skipping 14 matching lines...) Expand all
72 // Information about the app. 71 // Information about the app.
73 ShellIntegration::ShortcutInfo info_; 72 ShellIntegration::ShortcutInfo info_;
74 73
75 // The CFBundleIdentifier of the Chrome browser bundle. 74 // The CFBundleIdentifier of the Chrome browser bundle.
76 string16 chrome_bundle_id_; 75 string16 chrome_bundle_id_;
77 }; 76 };
78 77
79 } // namespace web_app 78 } // namespace web_app
80 79
81 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_ 80 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/web_applications/web_app_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698