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_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 class FilePath; |
benwells
2012/02/24 00:10:42
Nit: this forward decl can be removed now.
sail
2012/02/24 05:01:15
Done.
| |
19 | 20 |
20 #if defined(USE_X11) | 21 #if defined(USE_X11) |
21 namespace base { | 22 namespace base { |
22 class Environment; | 23 class Environment; |
23 } | 24 } |
24 #endif | 25 #endif |
25 | 26 |
26 class ShellIntegration { | 27 class ShellIntegration { |
27 public: | 28 public: |
28 // Sets Chrome as the default browser (only for the current user). Returns | 29 // Sets Chrome as the default browser (only for the current user). Returns |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
69 ShortcutInfo(); | 70 ShortcutInfo(); |
70 ~ShortcutInfo(); | 71 ~ShortcutInfo(); |
71 | 72 |
72 GURL url; | 73 GURL url; |
73 // If |extension_id| is non-empty, this is short cut is to an extension-app | 74 // 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| | 75 // 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). | 76 // is still used to generate the app id (windows app id, not chrome app id). |
76 std::string extension_id; | 77 std::string extension_id; |
77 string16 title; | 78 string16 title; |
78 string16 description; | 79 string16 description; |
80 FilePath extension_path; | |
79 SkBitmap favicon; | 81 SkBitmap favicon; |
80 | 82 |
81 bool create_on_desktop; | 83 bool create_on_desktop; |
82 bool create_in_applications_menu; | 84 bool create_in_applications_menu; |
83 | 85 |
84 // For Windows, this refers to quick launch bar prior to Win7. In Win7, | 86 // 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 | 87 // 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 | 88 // Mac dock or the gnome/kde application launcher. However, those are not |
87 // implemented yet. | 89 // implemented yet. |
88 bool create_in_quick_launch_bar; | 90 bool create_in_quick_launch_bar; |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
271 // Set Chrome as the default handler for this protocol. | 273 // Set Chrome as the default handler for this protocol. |
272 virtual void SetAsDefault() OVERRIDE; | 274 virtual void SetAsDefault() OVERRIDE; |
273 | 275 |
274 std::string protocol_; | 276 std::string protocol_; |
275 | 277 |
276 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); | 278 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); |
277 }; | 279 }; |
278 }; | 280 }; |
279 | 281 |
280 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ | 282 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ |
OLD | NEW |