OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |