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

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

Issue 9426030: Mac: Enable WebAppShortcutCreatorTest.CreateShortcut unit test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Whitespace fixes Created 8 years, 10 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 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/string16.h" 10 #include "base/string16.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 // Updates the icon for the shortcut. 43 // Updates the icon for the shortcut.
44 bool UpdateIcon(const FilePath& app_path) const; 44 bool UpdateIcon(const FilePath& app_path) const;
45 45
46 private: 46 private:
47 // Returns the bundle identifier to use for this app bundle. 47 // Returns the bundle identifier to use for this app bundle.
48 // |plist| is a dictionary containg a copy of the template plist file to 48 // |plist| is a dictionary containg a copy of the template plist file to
49 // be used for creating the app bundle. 49 // be used for creating the app bundle.
50 NSString* GetBundleIdentifier(NSDictionary* plist) const; 50 NSString* GetBundleIdentifier(NSDictionary* plist) const;
51 51
52 // Show the bundle we just generated in the Finder.
53 virtual void RevealGeneratedBundleInFinder(
54 const FilePath& generated_bundle) const;
55
52 // Information about the app. 56 // Information about the app.
53 ShellIntegration::ShortcutInfo info_; 57 ShellIntegration::ShortcutInfo info_;
54 58
55 // The CFBundleIdentifier of the Chrome browser bundle. 59 // The CFBundleIdentifier of the Chrome browser bundle.
56 string16 chrome_bundle_id_; 60 string16 chrome_bundle_id_;
57 }; 61 };
58 62
59 } // namespace web_app 63 } // namespace web_app
60 64
61 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_ 65 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698