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 kFavIconUrlKey[] = L"favIconUrl"; | 9 const wchar_t kFavIconUrlKey[] = L"favIconUrl"; |
10 const wchar_t kFocusedKey[] = L"focused"; | 10 const wchar_t kFocusedKey[] = L"focused"; |
(...skipping 28 matching lines...) Expand all Loading... |
39 const char kTabNotFoundError[] = "No tab with id: *."; | 39 const char kTabNotFoundError[] = "No tab with id: *."; |
40 const char kNoSelectedTabError[] = "No selected tab"; | 40 const char kNoSelectedTabError[] = "No selected tab"; |
41 const char kInvalidUrlError[] = "Invalid url: \"*\"."; | 41 const char kInvalidUrlError[] = "Invalid url: \"*\"."; |
42 const char kInternalVisibleTabCaptureError[] = | 42 const char kInternalVisibleTabCaptureError[] = |
43 "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"; |
44 const char kNotImplementedError[] = "This call is not yet implemented"; | 44 const char kNotImplementedError[] = "This call is not yet implemented"; |
45 const char kCannotAccessPageError[] = "Cannot access contents of url \"*\". " | 45 const char kCannotAccessPageError[] = "Cannot access contents of url \"*\". " |
46 "Extension manifest must request permission to access this host."; | 46 "Extension manifest must request permission to access this host."; |
47 const char kSupportedInWindowsOnlyError[] = "Supported in Windows only"; | 47 const char kSupportedInWindowsOnlyError[] = "Supported in Windows only"; |
48 | 48 |
49 const char kGetWindowFunction[] = "windows.get"; | |
50 const char kGetCurrentWindowFunction[] = "windows.getCurrent"; | |
51 const char kGetLastFocusedWindowFunction[] = "windows.getLastFocused"; | |
52 const char kGetAllWindowsFunction[] = "windows.getAll"; | |
53 const char kCreateWindowFunction[] = "windows.create"; | |
54 const char kUpdateWindowFunction[] = "windows.update"; | |
55 const char kRemoveWindowFunction[] = "windows.remove"; | |
56 | |
57 const char kGetTabFunction[] = "tabs.get"; | |
58 const char kGetSelectedTabFunction[] = "tabs.getSelected"; | |
59 const char kGetAllTabsInWindowFunction[] = "tabs.getAllInWindow"; | |
60 const char kCreateTabFunction[] = "tabs.create"; | |
61 const char kUpdateTabFunction[] = "tabs.update"; | |
62 const char kMoveTabFunction[] = "tabs.move"; | |
63 const char kRemoveTabFunction[] = "tabs.remove"; | |
64 const char kDetectTabLanguageFunction[] = "tabs.detectLanguage"; | |
65 const char kCaptureVisibleTabFunction[] = "tabs.captureVisibleTab"; | |
66 | |
67 const char kExecuteScriptFunction[] = "tabs.executeScript"; | |
68 const char kInsertCSSFunction[] = "tabs.insertCSS"; | |
69 const char kNoCodeOrFileToExecuteError[] = "No source code or file specified."; | 49 const char kNoCodeOrFileToExecuteError[] = "No source code or file specified."; |
70 const char kMoreThanOneValuesError[] = "There should be only one value (either" | 50 const char kMoreThanOneValuesError[] = "There should be only one value (either" |
71 "code or file) in the second argument."; | 51 "code or file) in the second argument."; |
72 const char kLoadFileError[] = "Failed to load file: \"*\". "; | 52 const char kLoadFileError[] = "Failed to load file: \"*\". "; |
73 | 53 |
74 } // namespace extension_tabs_module_constants | 54 } // namespace extension_tabs_module_constants |
OLD | NEW |