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
3 // found in the LICENSE file.
5 #include "chrome/browser/extensions/extension_tabs_module_constants.h"
7 namespace extension_tabs_module_constants
{
9 const char kActiveKey
[] = "active";
10 const char kAllFramesKey
[] = "allFrames";
11 const char kBypassCache
[] = "bypassCache";
12 const char kCodeKey
[] = "code";
13 const char kDrawAttentionKey
[] = "drawAttention";
14 const char kFaviconUrlKey
[] = "favIconUrl";
15 const char kFileKey
[] = "file";
16 const char kFocusedKey
[] = "focused";
17 const char kFormatKey
[] = "format";
18 const char kFromIndexKey
[] = "fromIndex";
19 const char kHeightKey
[] = "height";
20 const char kIdKey
[] = "id";
21 const char kIncognitoKey
[] = "incognito";
22 const char kIndexKey
[] = "index";
23 const char kLeftKey
[] = "left";
24 const char kNewPositionKey
[] = "newPosition";
25 const char kNewWindowIdKey
[] = "newWindowId";
26 const char kOldPositionKey
[] = "oldPosition";
27 const char kOldWindowIdKey
[] = "oldWindowId";
28 const char kOpenerTabIdKey
[] = "openerTabId";
29 const char kPinnedKey
[] = "pinned";
30 const char kQualityKey
[] = "quality";
31 const char kHighlightedKey
[] = "highlighted";
32 const char kSelectedKey
[] = "selected";
33 const char kShowStateKey
[] = "state";
34 const char kStatusKey
[] = "status";
35 const char kTabIdKey
[] = "tabId";
36 const char kTabIdsKey
[] = "tabIds";
37 const char kTabsKey
[] = "tabs";
38 const char kTabUrlKey
[] = "tabUrl";
39 const char kTitleKey
[] = "title";
40 const char kToIndexKey
[] = "toIndex";
41 const char kTopKey
[] = "top";
42 const char kUrlKey
[] = "url";
43 const char kWindowClosing
[] = "isWindowClosing";
44 const char kWidthKey
[] = "width";
45 const char kWindowIdKey
[] = "windowId";
46 const char kWindowTypeKey
[] = "type";
47 const char kWindowTypeLongKey
[] = "windowType";
49 const char kFormatValueJpeg
[] = "jpeg";
50 const char kFormatValuePng
[] = "png";
51 const char kMimeTypeJpeg
[] = "image/jpeg";
52 const char kMimeTypePng
[] = "image/png";
53 const char kShowStateValueNormal
[] = "normal";
54 const char kShowStateValueMinimized
[] = "minimized";
55 const char kShowStateValueMaximized
[] = "maximized";
56 const char kStatusValueComplete
[] = "complete";
57 const char kStatusValueLoading
[] = "loading";
59 // TODO(mpcomplete): should we expose more specific detail, like devtools, app
61 const char kWindowTypeValueNormal
[] = "normal";
62 const char kWindowTypeValuePopup
[] = "popup";
63 const char kWindowTypeValuePanel
[] = "panel";
64 const char kWindowTypeValueApp
[] = "app";
66 const char kCanOnlyMoveTabsWithinNormalWindowsError
[] = "Tabs can only be "
67 "moved to and from normal windows.";
68 const char kCanOnlyMoveTabsWithinSameProfileError
[] = "Tabs can only be moved "
69 "between windows in the same profile.";
70 const char kNoCrashBrowserError
[] =
71 "I'm sorry. I'm afraid I can't do that.";
72 const char kNoCurrentWindowError
[] = "No current window";
73 const char kNoLastFocusedWindowError
[] = "No last-focused window";
74 const char kWindowNotFoundError
[] = "No window with id: *.";
75 const char kTabIndexNotFoundError
[] = "No tab at index: *.";
76 const char kTabNotFoundError
[] = "No tab with id: *.";
77 const char kTabStripNotEditableError
[] =
78 "Tabs cannot be edited right now (user may be dragging a tab).";
79 const char kNoSelectedTabError
[] = "No selected tab";
80 const char kNoHighlightedTabError
[] = "No highlighted tab";
81 const char kIncognitoModeIsDisabled
[] = "Incognito mode is disabled.";
82 const char kIncognitoModeIsForced
[] = "Incognito mode is forced. "
83 "Cannot open normal windows.";
84 const char kURLsNotAllowedInIncognitoError
[] = "Cannot open URL \"*\" "
85 "in an incognito window.";
86 const char kInvalidUrlError
[] = "Invalid url: \"*\".";
87 const char kInternalVisibleTabCaptureError
[] =
88 "Internal error while trying to capture visible region of the current tab";
89 const char kNotImplementedError
[] = "This call is not yet implemented";
90 const char kSupportedInWindowsOnlyError
[] = "Supported in Windows only";
91 const char kInvalidWindowTypeError
[] = "Invalid value for type";
92 const char kInvalidWindowStateError
[] = "Invalid value for state";
94 const char kNoCodeOrFileToExecuteError
[] = "No source code or file specified.";
95 const char kMoreThanOneValuesError
[] = "Code and file should not be specified "
96 "at the same time in the second argument.";
97 const char kLoadFileError
[] = "Failed to load file: \"*\". ";
98 const char kCannotDetermineLanguageOfUnloadedTab
[] =
99 "Cannot determine language: tab not loaded";
101 } // namespace extension_tabs_module_constants