| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "chrome/browser/extensions/extension_tabs_module_constants.h" | 5 #include "chrome/browser/extensions/extension_tabs_module_constants.h" |
| 6 | 6 |
| 7 namespace extension_tabs_module_constants { | 7 namespace extension_tabs_module_constants { |
| 8 | 8 |
| 9 const wchar_t kDataKey[] = L"data"; | |
| 10 const wchar_t kFavIconUrlKey[] = L"favIconUrl"; | 9 const wchar_t kFavIconUrlKey[] = L"favIconUrl"; |
| 11 const wchar_t kFocusedKey[] = L"focused"; | 10 const wchar_t kFocusedKey[] = L"focused"; |
| 12 const wchar_t kFromIndexKey[] = L"fromIndex"; | 11 const wchar_t kFromIndexKey[] = L"fromIndex"; |
| 13 const wchar_t kHeightKey[] = L"height"; | 12 const wchar_t kHeightKey[] = L"height"; |
| 14 const wchar_t kIdKey[] = L"id"; | 13 const wchar_t kIdKey[] = L"id"; |
| 15 const wchar_t kIndexKey[] = L"index"; | 14 const wchar_t kIndexKey[] = L"index"; |
| 16 const wchar_t kLeftKey[] = L"left"; | 15 const wchar_t kLeftKey[] = L"left"; |
| 17 const wchar_t kNewPositionKey[] = L"newPosition"; | 16 const wchar_t kNewPositionKey[] = L"newPosition"; |
| 18 const wchar_t kNewWindowIdKey[] = L"newWindowId"; | 17 const wchar_t kNewWindowIdKey[] = L"newWindowId"; |
| 19 const wchar_t kOldPositionKey[] = L"oldPosition"; | 18 const wchar_t kOldPositionKey[] = L"oldPosition"; |
| 20 const wchar_t kOldWindowIdKey[] = L"oldWindowId"; | 19 const wchar_t kOldWindowIdKey[] = L"oldWindowId"; |
| 21 const wchar_t kPageActionIdKey[] = L"pageActionId"; | 20 const wchar_t kPopulateKey[] = L"populate"; |
| 22 const wchar_t kSelectedKey[] = L"selected"; | 21 const wchar_t kSelectedKey[] = L"selected"; |
| 23 const wchar_t kStatusKey[] = L"status"; | 22 const wchar_t kStatusKey[] = L"status"; |
| 24 const wchar_t kTabIdKey[] = L"tabId"; | 23 const wchar_t kTabIdKey[] = L"tabId"; |
| 25 const wchar_t kTabsKey[] = L"tabs"; | 24 const wchar_t kTabsKey[] = L"tabs"; |
| 26 const wchar_t kTabUrlKey[] = L"tabUrl"; | 25 const wchar_t kTabUrlKey[] = L"tabUrl"; |
| 27 const wchar_t kTitleKey[] = L"title"; | 26 const wchar_t kTitleKey[] = L"title"; |
| 28 const wchar_t kToIndexKey[] = L"toIndex"; | 27 const wchar_t kToIndexKey[] = L"toIndex"; |
| 29 const wchar_t kTopKey[] = L"top"; | 28 const wchar_t kTopKey[] = L"top"; |
| 30 const wchar_t kUrlKey[] = L"url"; | 29 const wchar_t kUrlKey[] = L"url"; |
| 31 const wchar_t kWidthKey[] = L"width"; | 30 const wchar_t kWidthKey[] = L"width"; |
| 32 const wchar_t kWindowIdKey[] = L"windowId"; | 31 const wchar_t kWindowIdKey[] = L"windowId"; |
| 33 | 32 |
| 34 const char kStatusValueComplete[] = "complete"; | 33 const char kStatusValueComplete[] = "complete"; |
| 35 const char kStatusValueLoading[] = "loading"; | 34 const char kStatusValueLoading[] = "loading"; |
| 36 | 35 |
| 37 const char kNoCurrentWindowError[] = "No current window"; | 36 const char kNoCurrentWindowError[] = "No current window"; |
| 38 const char kNoLastFocusedWindowError[] = "No last-focused window"; | 37 const char kNoLastFocusedWindowError[] = "No last-focused window"; |
| 39 const char kWindowNotFoundError[] = "No window with id: *."; | 38 const char kWindowNotFoundError[] = "No window with id: *."; |
| 40 const char kTabNotFoundError[] = "No tab with id: *."; | 39 const char kTabNotFoundError[] = "No tab with id: *."; |
| 41 const char kNoSelectedTabError[] = "No selected tab"; | 40 const char kNoSelectedTabError[] = "No selected tab"; |
| 42 const char kInvalidUrlError[] = "Invalid url: \"*\"."; | 41 const char kInvalidUrlError[] = "Invalid url: \"*\"."; |
| 43 const char kInternalVisibleTabCaptureError[] = | 42 const char kInternalVisibleTabCaptureError[] = |
| 44 "Internal error while trying to capture visible region of the current tab"; | 43 "Internal error while trying to capture visible region of the current tab"; |
| 45 const char kNotImplementedError[] = "This call is not yet implemented"; | 44 const char kNotImplementedError[] = "This call is not yet implemented"; |
| 46 | 45 |
| 47 const char kGetWindowFunction[] = "windows.get"; | 46 const char kGetWindowFunction[] = "windows.get"; |
| 48 const char kGetCurrentWindowFunction[] = "windows.getCurrent"; | 47 const char kGetCurrentWindowFunction[] = "windows.getCurrent"; |
| 49 const char kGetLastFocusedWindowFunction[] = "windows.getLastFocused"; | 48 const char kGetLastFocusedWindowFunction[] = "windows.getLastFocused"; |
| 50 const char kGetAllWindowsFunction[] = "windows.getAll"; | 49 const char kGetAllWindowsFunction[] = "windows.getAll"; |
| 51 const char kCreateWindowFunction[] = "windows.create"; | 50 const char kCreateWindowFunction[] = "windows.create"; |
| 52 const char kUpdateWindowFunction[] = "windows.update"; | 51 const char kUpdateWindowFunction[] = "windows.update"; |
| 53 const char kRemoveWindowFunction[] = "windows.remove"; | 52 const char kRemoveWindowFunction[] = "windows.remove"; |
| 54 | 53 |
| 55 const char kGetTabFunction[] = "tabs.get"; | 54 const char kGetTabFunction[] = "tabs.get"; |
| 56 const char kGetSelectedTabFunction[] = "tabs.getSelected"; | 55 const char kGetSelectedTabFunction[] = "tabs.getSelected"; |
| 57 const char kGetAllTabsInWindowFunction[] = "tabs.getAllInWindow"; | 56 const char kGetAllTabsInWindowFunction[] = "tabs.getAllInWindow"; |
| 58 const char kCreateTabFunction[] = "tabs.create"; | 57 const char kCreateTabFunction[] = "tabs.create"; |
| 59 const char kUpdateTabFunction[] = "tabs.update"; | 58 const char kUpdateTabFunction[] = "tabs.update"; |
| 60 const char kMoveTabFunction[] = "tabs.move"; | 59 const char kMoveTabFunction[] = "tabs.move"; |
| 61 const char kRemoveTabFunction[] = "tabs.remove"; | 60 const char kRemoveTabFunction[] = "tabs.remove"; |
| 62 const char kDetectTabLanguageFunction[] = "tabs.detectLanguage"; | 61 const char kDetectTabLanguageFunction[] = "tabs.detectLanguage"; |
| 63 const char kCaptureVisibleTabFunction[] = "tabs.captureVisibleTab"; | 62 const char kCaptureVisibleTabFunction[] = "tabs.captureVisibleTab"; |
| 64 | 63 |
| 65 } // namespace extension_tabs_module_constants | 64 } // namespace extension_tabs_module_constants |
| OLD | NEW |