| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // Path to the app's user data directory. For example: | 58 // Path to the app's user data directory. For example: |
| 59 // ~/Library/Application Support/Chromium/Default/Web Applications/_crx_abc/ | 59 // ~/Library/Application Support/Chromium/Default/Web Applications/_crx_abc/ |
| 60 // Note, the user data directory is the parent of the profile directory. | 60 // Note, the user data directory is the parent of the profile directory. |
| 61 FilePath user_data_dir_; | 61 FilePath user_data_dir_; |
| 62 | 62 |
| 63 // Returns the bundle identifier to use for this app bundle. | 63 // Returns the bundle identifier to use for this app bundle. |
| 64 // |plist| is a dictionary containg a copy of the template plist file to | 64 // |plist| is a dictionary containg a copy of the template plist file to |
| 65 // be used for creating the app bundle. | 65 // be used for creating the app bundle. |
| 66 NSString* GetBundleIdentifier(NSDictionary* plist) const; | 66 NSString* GetBundleIdentifier(NSDictionary* plist) const; |
| 67 | 67 |
| 68 // Show the bundle we just generated in the Finder. |
| 69 virtual void RevealGeneratedBundleInFinder( |
| 70 const FilePath& generated_bundle) const; |
| 71 |
| 68 // Information about the app. | 72 // Information about the app. |
| 69 ShellIntegration::ShortcutInfo info_; | 73 ShellIntegration::ShortcutInfo info_; |
| 70 | 74 |
| 71 // The CFBundleIdentifier of the Chrome browser bundle. | 75 // The CFBundleIdentifier of the Chrome browser bundle. |
| 72 string16 chrome_bundle_id_; | 76 string16 chrome_bundle_id_; |
| 73 }; | 77 }; |
| 74 | 78 |
| 75 } // namespace web_app | 79 } // namespace web_app |
| 76 | 80 |
| 77 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_ | 81 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_ |
| OLD | NEW |