| 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 ShortcutLocations(); | 110 ShortcutLocations(); |
| 111 | 111 |
| 112 bool on_desktop; | 112 bool on_desktop; |
| 113 bool in_applications_menu; | 113 bool in_applications_menu; |
| 114 | 114 |
| 115 // For Windows, this refers to quick launch bar prior to Win7. In Win7, | 115 // For Windows, this refers to quick launch bar prior to Win7. In Win7, |
| 116 // this means "pin to taskbar". For Mac/Linux, this could be used for | 116 // this means "pin to taskbar". For Mac/Linux, this could be used for |
| 117 // Mac dock or the gnome/kde application launcher. However, those are not | 117 // Mac dock or the gnome/kde application launcher. However, those are not |
| 118 // implemented yet. | 118 // implemented yet. |
| 119 bool in_quick_launch_bar; | 119 bool in_quick_launch_bar; |
| 120 |
| 121 // For Linux, this refers to a shortcut which the system knows about (for |
| 122 // the purpose of identifying windows and giving them the correct |
| 123 // title/icon), but which does not show up in menus or search results. |
| 124 // Ignored if in_applications_menu == true. |
| 125 bool hidden; |
| 120 }; | 126 }; |
| 121 | 127 |
| 122 // Data that needs to be passed between the app launcher stub and Chrome. | 128 // Data that needs to be passed between the app launcher stub and Chrome. |
| 123 struct AppModeInfo { | 129 struct AppModeInfo { |
| 124 }; | 130 }; |
| 125 static void SetAppModeInfo(const AppModeInfo* info); | 131 static void SetAppModeInfo(const AppModeInfo* info); |
| 126 static const AppModeInfo* AppModeInfo(); | 132 static const AppModeInfo* AppModeInfo(); |
| 127 | 133 |
| 128 // Is the current instance of Chrome running in App mode. | 134 // Is the current instance of Chrome running in App mode. |
| 129 bool IsRunningInAppMode(); | 135 bool IsRunningInAppMode(); |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 // Set Chrome as the default handler for this protocol. | 329 // Set Chrome as the default handler for this protocol. |
| 324 virtual bool SetAsDefault(bool interactive_permitted) OVERRIDE; | 330 virtual bool SetAsDefault(bool interactive_permitted) OVERRIDE; |
| 325 | 331 |
| 326 std::string protocol_; | 332 std::string protocol_; |
| 327 | 333 |
| 328 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); | 334 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); |
| 329 }; | 335 }; |
| 330 }; | 336 }; |
| 331 | 337 |
| 332 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ | 338 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ |
| OLD | NEW |