| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // Constants used for the Tabs API and the Windows API. | 5 // Constants used for the Tabs API and the Windows API. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_CONSTANTS_H_ | 7 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_CONSTANTS_H_ |
| 8 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_CONSTANTS_H_ | 8 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_CONSTANTS_H_ |
| 9 | 9 |
| 10 namespace extension_tabs_module_constants { | 10 namespace extension_tabs_module_constants { |
| 11 | 11 |
| 12 // Keys used in serializing tab data & events. | 12 // Keys used in serializing tab data & events. |
| 13 extern const wchar_t kAllFramesKey[]; | 13 extern const wchar_t kAllFramesKey[]; |
| 14 extern const wchar_t kCodeKey[]; | 14 extern const wchar_t kCodeKey[]; |
| 15 extern const wchar_t kFavIconUrlKey[]; | 15 extern const wchar_t kFavIconUrlKey[]; |
| 16 extern const wchar_t kFileKey[]; | 16 extern const wchar_t kFileKey[]; |
| 17 extern const wchar_t kFocusedKey[]; | 17 extern const wchar_t kFocusedKey[]; |
| 18 extern const wchar_t kFormatKey[]; |
| 18 extern const wchar_t kFromIndexKey[]; | 19 extern const wchar_t kFromIndexKey[]; |
| 19 extern const wchar_t kHeightKey[]; | 20 extern const wchar_t kHeightKey[]; |
| 20 extern const wchar_t kIdKey[]; | 21 extern const wchar_t kIdKey[]; |
| 21 extern const wchar_t kIndexKey[]; | 22 extern const wchar_t kIndexKey[]; |
| 22 extern const wchar_t kLeftKey[]; | 23 extern const wchar_t kLeftKey[]; |
| 23 extern const wchar_t kNewPositionKey[]; | 24 extern const wchar_t kNewPositionKey[]; |
| 24 extern const wchar_t kNewWindowIdKey[]; | 25 extern const wchar_t kNewWindowIdKey[]; |
| 25 extern const wchar_t kOldPositionKey[]; | 26 extern const wchar_t kOldPositionKey[]; |
| 26 extern const wchar_t kOldWindowIdKey[]; | 27 extern const wchar_t kOldWindowIdKey[]; |
| 27 extern const wchar_t kPopulateKey[]; | 28 extern const wchar_t kPopulateKey[]; |
| 29 extern const wchar_t kQualityKey[]; |
| 28 extern const wchar_t kSelectedKey[]; | 30 extern const wchar_t kSelectedKey[]; |
| 29 extern const wchar_t kStatusKey[]; | 31 extern const wchar_t kStatusKey[]; |
| 30 extern const wchar_t kTabIdKey[]; | 32 extern const wchar_t kTabIdKey[]; |
| 31 extern const wchar_t kTabsKey[]; | 33 extern const wchar_t kTabsKey[]; |
| 32 extern const wchar_t kTabUrlKey[]; | 34 extern const wchar_t kTabUrlKey[]; |
| 33 extern const wchar_t kTitleKey[]; | 35 extern const wchar_t kTitleKey[]; |
| 34 extern const wchar_t kToIndexKey[]; | 36 extern const wchar_t kToIndexKey[]; |
| 35 extern const wchar_t kTopKey[]; | 37 extern const wchar_t kTopKey[]; |
| 36 extern const wchar_t kUrlKey[]; | 38 extern const wchar_t kUrlKey[]; |
| 37 extern const wchar_t kWidthKey[]; | 39 extern const wchar_t kWidthKey[]; |
| 38 extern const wchar_t kWindowIdKey[]; | 40 extern const wchar_t kWindowIdKey[]; |
| 39 extern const wchar_t kIncognitoKey[]; | 41 extern const wchar_t kIncognitoKey[]; |
| 40 extern const wchar_t kWindowTypeKey[]; | 42 extern const wchar_t kWindowTypeKey[]; |
| 41 | 43 |
| 42 // Value consts. | 44 // Value consts. |
| 45 extern const char kFormatValueJpeg[]; |
| 46 extern const char kFormatValuePng[]; |
| 47 extern const char kMimeTypeJpeg[]; |
| 48 extern const char kMimeTypePng[]; |
| 43 extern const char kStatusValueComplete[]; | 49 extern const char kStatusValueComplete[]; |
| 44 extern const char kStatusValueLoading[]; | 50 extern const char kStatusValueLoading[]; |
| 45 extern const char kWindowTypeValueNormal[]; | 51 extern const char kWindowTypeValueNormal[]; |
| 46 extern const char kWindowTypeValuePopup[]; | 52 extern const char kWindowTypeValuePopup[]; |
| 47 extern const char kWindowTypeValueApp[]; | 53 extern const char kWindowTypeValueApp[]; |
| 48 | 54 |
| 49 // Error messages. | 55 // Error messages. |
| 50 extern const char kNoCurrentWindowError[]; | 56 extern const char kNoCurrentWindowError[]; |
| 51 extern const char kNoLastFocusedWindowError[]; | 57 extern const char kNoLastFocusedWindowError[]; |
| 52 extern const char kWindowNotFoundError[]; | 58 extern const char kWindowNotFoundError[]; |
| 53 extern const char kTabNotFoundError[]; | 59 extern const char kTabNotFoundError[]; |
| 54 extern const char kNoSelectedTabError[]; | 60 extern const char kNoSelectedTabError[]; |
| 55 extern const char kInvalidUrlError[]; | 61 extern const char kInvalidUrlError[]; |
| 56 extern const char kInternalVisibleTabCaptureError[]; | 62 extern const char kInternalVisibleTabCaptureError[]; |
| 57 extern const char kNotImplementedError[]; | 63 extern const char kNotImplementedError[]; |
| 58 extern const char kSupportedInWindowsOnlyError[]; | 64 extern const char kSupportedInWindowsOnlyError[]; |
| 59 | 65 |
| 60 extern const char kNoCodeOrFileToExecuteError[]; | 66 extern const char kNoCodeOrFileToExecuteError[]; |
| 61 extern const char kMoreThanOneValuesError[]; | 67 extern const char kMoreThanOneValuesError[]; |
| 62 extern const char kLoadFileError[]; | 68 extern const char kLoadFileError[]; |
| 63 extern const char kCannotUpdatePinnedTab[]; | 69 extern const char kCannotUpdatePinnedTab[]; |
| 64 extern const char kCannotRemovePhantomTab[]; | 70 extern const char kCannotRemovePhantomTab[]; |
| 65 extern const char kCannotDetermineLanguageOfUnloadedTab[]; | 71 extern const char kCannotDetermineLanguageOfUnloadedTab[]; |
| 66 | 72 |
| 67 }; // namespace extension_tabs_module_constants | 73 }; // namespace extension_tabs_module_constants |
| 68 | 74 |
| 69 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_CONSTANTS_H_ | 75 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_CONSTANTS_H_ |
| OLD | NEW |