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

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

Issue 9362001: Unit tests for publishing app shortcuts on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_
6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_
7 #pragma once
8
9 #include "chrome/browser/shell_integration.h"
Robert Sesek 2012/02/13 21:47:19 IWYU: FilePath
sail 2012/02/13 23:26:42 Done.
10
11 namespace web_app {
12
13 // Creates a shortcut for a web application. The shortcut is a stub app
14 // that simply loads the browser framework and runs the given app.
15 class WebAppShortcutCreator {
16 public:
17 // Creates a new shortcut based on information in |shortcut_info|.
18 explicit WebAppShortcutCreator(
19 const ShellIntegration::ShortcutInfo& shortcut_info);
20 virtual ~WebAppShortcutCreator();
21
22 // Creates a shortcut.
23 bool CreateShortcut();
24
25 protected:
26 // Returns a path to the app loader.
27 FilePath GetAppLoaderPath() const;
28
29 // Returns a path to the destination where the app should be written to.
30 virtual FilePath GetDestinationPath(const FilePath& app_file_name) const;
31
32 // Updates the plist inside |app_path| with information about the app.
33 bool UpdatePlist(const FilePath& app_path) const;
34
35 // Updates the icon for the shortcut.
36 bool UpdateIcon(const FilePath& app_path) const;
37
38 private:
39 // Information about the app.
40 ShellIntegration::ShortcutInfo info_;
41 };
42
43 } // namespace web_app
44
45 #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') | chrome/browser/web_applications/web_app_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698