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

Side by Side Diff: chrome/browser/shell_integration.h

Issue 9374009: Install platform apps into a separate data directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments 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_SHELL_INTEGRATION_H_ 5 #ifndef CHROME_BROWSER_SHELL_INTEGRATION_H_
6 #define CHROME_BROWSER_SHELL_INTEGRATION_H_ 6 #define CHROME_BROWSER_SHELL_INTEGRATION_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/file_path.h"
12 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
13 #include "base/string16.h" 14 #include "base/string16.h"
14 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
15 #include "third_party/skia/include/core/SkBitmap.h" 16 #include "third_party/skia/include/core/SkBitmap.h"
16 17
17 class CommandLine; 18 class CommandLine;
18 class FilePath;
19 19
20 #if defined(USE_X11) 20 #if defined(USE_X11)
21 namespace base { 21 namespace base {
22 class Environment; 22 class Environment;
23 } 23 }
24 #endif 24 #endif
25 25
26 class ShellIntegration { 26 class ShellIntegration {
27 public: 27 public:
28 // Sets Chrome as the default browser (only for the current user). Returns 28 // Sets Chrome as the default browser (only for the current user). Returns
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 ShortcutInfo(); 69 ShortcutInfo();
70 ~ShortcutInfo(); 70 ~ShortcutInfo();
71 71
72 GURL url; 72 GURL url;
73 // If |extension_id| is non-empty, this is short cut is to an extension-app 73 // If |extension_id| is non-empty, this is short cut is to an extension-app
74 // and the launch url will be detected at start-up. In this case, |url| 74 // and the launch url will be detected at start-up. In this case, |url|
75 // is still used to generate the app id (windows app id, not chrome app id). 75 // is still used to generate the app id (windows app id, not chrome app id).
76 std::string extension_id; 76 std::string extension_id;
77 string16 title; 77 string16 title;
78 string16 description; 78 string16 description;
79 FilePath extension_path;
79 SkBitmap favicon; 80 SkBitmap favicon;
80 81
81 bool create_on_desktop; 82 bool create_on_desktop;
82 bool create_in_applications_menu; 83 bool create_in_applications_menu;
83 84
84 // For Windows, this refers to quick launch bar prior to Win7. In Win7, 85 // For Windows, this refers to quick launch bar prior to Win7. In Win7,
85 // this means "pin to taskbar". For Mac/Linux, this could be used for 86 // this means "pin to taskbar". For Mac/Linux, this could be used for
86 // Mac dock or the gnome/kde application launcher. However, those are not 87 // Mac dock or the gnome/kde application launcher. However, those are not
87 // implemented yet. 88 // implemented yet.
88 bool create_in_quick_launch_bar; 89 bool create_in_quick_launch_bar;
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 // Set Chrome as the default handler for this protocol. 272 // Set Chrome as the default handler for this protocol.
272 virtual void SetAsDefault() OVERRIDE; 273 virtual void SetAsDefault() OVERRIDE;
273 274
274 std::string protocol_; 275 std::string protocol_;
275 276
276 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); 277 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker);
277 }; 278 };
278 }; 279 };
279 280
280 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ 281 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/app_shortcut_manager.cc ('k') | chrome/browser/web_applications/web_app_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698