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

Unified 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: Remove IsWritable 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/web_applications/web_app_mac.h
diff --git a/chrome/browser/web_applications/web_app_mac.h b/chrome/browser/web_applications/web_app_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..f9142b507ce8e94a3ff0accd62838c835c6b5cd2
--- /dev/null
+++ b/chrome/browser/web_applications/web_app_mac.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_
+#define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_
+#pragma once
+
+#include "chrome/browser/shell_integration.h"
+
+namespace web_app {
+
+class WebAppShortcutCreator {
Robert Sesek 2012/02/08 01:01:28 Comment++++++
sail 2012/02/09 23:04:39 Done.
+ public:
+ explicit WebAppShortcutCreator(
+ const ShellIntegration::ShortcutInfo& shortcut_info);
+ virtual ~WebAppShortcutCreator();
+
+ bool CreateShortcut();
+
+ protected:
+ FilePath GetAppLoaderPath() const;
+ virtual FilePath GetDstPath(const FilePath& app_file_name) const;
+ bool UpdatePlist(const FilePath& app_path) const;
+ bool UpdateIcon(const FilePath& app_path) const;
+
+ private:
+ ShellIntegration::ShortcutInfo info_;
+};
+
+} // namespace web_app
+
+#endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_
« no previous file with comments | « no previous file | chrome/browser/web_applications/web_app_mac.mm » ('j') | chrome/browser/web_applications/web_app_mac_unittest.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698