| 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/file_path.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/string16.h" | 14 #include "base/string16.h" |
| 15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
| 16 #include "third_party/skia/include/core/SkBitmap.h" | 16 #include "third_party/skia/include/core/SkBitmap.h" |
| 17 #include "ui/gfx/image/image.h" |
| 17 | 18 |
| 18 class CommandLine; | 19 class CommandLine; |
| 19 class FilePath; | 20 class FilePath; |
| 20 | 21 |
| 21 #if defined(USE_X11) | 22 #if defined(USE_X11) |
| 22 namespace base { | 23 namespace base { |
| 23 class Environment; | 24 class Environment; |
| 24 } | 25 } |
| 25 #endif | 26 #endif |
| 26 | 27 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 ~ShortcutInfo(); | 72 ~ShortcutInfo(); |
| 72 | 73 |
| 73 GURL url; | 74 GURL url; |
| 74 // If |extension_id| is non-empty, this is short cut is to an extension-app | 75 // If |extension_id| is non-empty, this is short cut is to an extension-app |
| 75 // and the launch url will be detected at start-up. In this case, |url| | 76 // and the launch url will be detected at start-up. In this case, |url| |
| 76 // is still used to generate the app id (windows app id, not chrome app id). | 77 // is still used to generate the app id (windows app id, not chrome app id). |
| 77 std::string extension_id; | 78 std::string extension_id; |
| 78 string16 title; | 79 string16 title; |
| 79 string16 description; | 80 string16 description; |
| 80 FilePath extension_path; | 81 FilePath extension_path; |
| 81 SkBitmap favicon; | 82 gfx::Image favicon; |
| 82 | 83 |
| 83 bool create_on_desktop; | 84 bool create_on_desktop; |
| 84 bool create_in_applications_menu; | 85 bool create_in_applications_menu; |
| 85 | 86 |
| 86 // For Windows, this refers to quick launch bar prior to Win7. In Win7, | 87 // For Windows, this refers to quick launch bar prior to Win7. In Win7, |
| 87 // this means "pin to taskbar". For Mac/Linux, this could be used for | 88 // this means "pin to taskbar". For Mac/Linux, this could be used for |
| 88 // Mac dock or the gnome/kde application launcher. However, those are not | 89 // Mac dock or the gnome/kde application launcher. However, those are not |
| 89 // implemented yet. | 90 // implemented yet. |
| 90 bool create_in_quick_launch_bar; | 91 bool create_in_quick_launch_bar; |
| 91 }; | 92 }; |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 // Set Chrome as the default handler for this protocol. | 274 // Set Chrome as the default handler for this protocol. |
| 274 virtual void SetAsDefault() OVERRIDE; | 275 virtual void SetAsDefault() OVERRIDE; |
| 275 | 276 |
| 276 std::string protocol_; | 277 std::string protocol_; |
| 277 | 278 |
| 278 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); | 279 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); |
| 279 }; | 280 }; |
| 280 }; | 281 }; |
| 281 | 282 |
| 282 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ | 283 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ |
| OLD | NEW |