| 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_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 | 330 |
| 331 // The file to write our decoded images to, relative to the extension_path. | 331 // The file to write our decoded images to, relative to the extension_path. |
| 332 extern const char kDecodedImagesFilename[]; | 332 extern const char kDecodedImagesFilename[]; |
| 333 | 333 |
| 334 // The file to write our decoded message catalogs to, relative to the | 334 // The file to write our decoded message catalogs to, relative to the |
| 335 // extension_path. | 335 // extension_path. |
| 336 extern const char kDecodedMessageCatalogsFilename[]; | 336 extern const char kDecodedMessageCatalogsFilename[]; |
| 337 } | 337 } |
| 338 | 338 |
| 339 namespace extension_misc { | 339 namespace extension_misc { |
| 340 // Matches chrome.windows.WINDOW_ID_NONE. |
| 340 const int kUnknownWindowId = -1; | 341 const int kUnknownWindowId = -1; |
| 341 | 342 |
| 343 // Matches chrome.windows.WINDOW_ID_CURRENT. |
| 344 const int kCurrentWindowId = -2; |
| 345 |
| 342 // The extension id of the bookmark manager. | 346 // The extension id of the bookmark manager. |
| 343 extern const char kBookmarkManagerId[]; | 347 extern const char kBookmarkManagerId[]; |
| 344 | 348 |
| 345 // The extension id of the Web Store component application. | 349 // The extension id of the Web Store component application. |
| 346 extern const char kWebStoreAppId[]; | 350 extern const char kWebStoreAppId[]; |
| 347 | 351 |
| 348 // The extension id of the Cloud Print component application. | 352 // The extension id of the Cloud Print component application. |
| 349 extern const char kCloudPrintAppId[]; | 353 extern const char kCloudPrintAppId[]; |
| 350 | 354 |
| 351 // Note: this structure is an ASN.1 which encodes the algorithm used | 355 // Note: this structure is an ASN.1 which encodes the algorithm used |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 | 467 |
| 464 enum UnloadedExtensionReason { | 468 enum UnloadedExtensionReason { |
| 465 UNLOAD_REASON_DISABLE, // Extension is being disabled. | 469 UNLOAD_REASON_DISABLE, // Extension is being disabled. |
| 466 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version. | 470 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version. |
| 467 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled. | 471 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled. |
| 468 UNLOAD_REASON_TERMINATE, // Extension has terminated. | 472 UNLOAD_REASON_TERMINATE, // Extension has terminated. |
| 469 }; | 473 }; |
| 470 } // extension_misc | 474 } // extension_misc |
| 471 | 475 |
| 472 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 476 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
| OLD | NEW |