Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / extensions / api / tabs / tabs_constants.cc
blob5a2a1c99187b9c0cc7acc4edd2abedc5fe6fa78b
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/api/tabs/tabs_constants.h"
7 namespace extensions {
8 namespace tabs_constants {
10 const char kActiveKey[] = "active";
11 const char kAllFramesKey[] = "allFrames";
12 const char kAlwaysOnTopKey[] = "alwaysOnTop";
13 const char kBypassCache[] = "bypassCache";
14 const char kCodeKey[] = "code";
15 const char kCurrentWindowKey[] = "currentWindow";
16 const char kFaviconUrlKey[] = "favIconUrl";
17 const char kFileKey[] = "file";
18 const char kFocusedKey[] = "focused";
19 const char kFormatKey[] = "format";
20 const char kFromIndexKey[] = "fromIndex";
21 const char kHeightKey[] = "height";
22 const char kIdKey[] = "id";
23 const char kIncognitoKey[] = "incognito";
24 const char kIndexKey[] = "index";
25 const char kLastFocusedWindowKey[] = "lastFocusedWindow";
26 const char kLeftKey[] = "left";
27 const char kNewPositionKey[] = "newPosition";
28 const char kNewWindowIdKey[] = "newWindowId";
29 const char kOldPositionKey[] = "oldPosition";
30 const char kOldWindowIdKey[] = "oldWindowId";
31 const char kOpenerTabIdKey[] = "openerTabId";
32 const char kPinnedKey[] = "pinned";
33 const char kAudibleKey[] = "audible";
34 const char kMutedKey[] = "muted";
35 const char kMutedInfoKey[] = "mutedInfo";
36 const char kQualityKey[] = "quality";
37 const char kHighlightedKey[] = "highlighted";
38 const char kRunAtKey[] = "runAt";
39 const char kSelectedKey[] = "selected";
40 const char kShowStateKey[] = "state";
41 const char kStatusKey[] = "status";
42 const char kTabIdKey[] = "tabId";
43 const char kTabIdsKey[] = "tabIds";
44 const char kTabsKey[] = "tabs";
45 const char kTitleKey[] = "title";
46 const char kToIndexKey[] = "toIndex";
47 const char kTopKey[] = "top";
48 const char kUrlKey[] = "url";
49 const char kWindowClosing[] = "isWindowClosing";
50 const char kWidthKey[] = "width";
51 const char kWindowIdKey[] = "windowId";
52 const char kWindowTypeKey[] = "type";
53 const char kWindowTypeLongKey[] = "windowType";
54 const char kWindowTypesKey[] = "windowTypes";
55 const char kZoomSettingsMode[] = "mode";
56 const char kZoomSettingsScope[] = "scope";
58 const char kShowStateValueNormal[] = "normal";
59 const char kShowStateValueMinimized[] = "minimized";
60 const char kShowStateValueMaximized[] = "maximized";
61 const char kShowStateValueFullscreen[] = "fullscreen";
62 const char kStatusValueComplete[] = "complete";
63 const char kStatusValueLoading[] = "loading";
65 const char kWindowTypeValueNormal[] = "normal";
66 const char kWindowTypeValuePopup[] = "popup";
67 const char kWindowTypeValuePanel[] = "panel";
68 const char kWindowTypeValueDetachedPanel[] = "detached_panel";
69 const char kWindowTypeValueApp[] = "app";
70 const char kWindowTypeValueDevTools[] = "devtools";
72 const char kCannotZoomDisabledTabError[] = "Cannot zoom a tab in disabled "
73 "mode.";
74 const char kCanOnlyMoveTabsWithinNormalWindowsError[] = "Tabs can only be "
75 "moved to and from normal windows.";
76 const char kCanOnlyMoveTabsWithinSameProfileError[] = "Tabs can only be moved "
77 "between windows in the same profile.";
78 const char kNoCrashBrowserError[] =
79 "I'm sorry. I'm afraid I can't do that.";
80 const char kNoCurrentWindowError[] = "No current window";
81 const char kNoLastFocusedWindowError[] = "No last-focused window";
82 const char kPerOriginOnlyInAutomaticError[] = "Can only set scope to "
83 "\"per-origin\" in \"automatic\" mode.";
84 const char kWindowNotFoundError[] = "No window with id: *.";
85 const char kTabIndexNotFoundError[] = "No tab at index: *.";
86 const char kTabNotFoundError[] = "No tab with id: *.";
87 const char kTabStripNotEditableError[] =
88 "Tabs cannot be edited right now (user may be dragging a tab).";
89 const char kNoSelectedTabError[] = "No selected tab";
90 const char kNoHighlightedTabError[] = "No highlighted tab";
91 const char kIncognitoModeIsDisabled[] = "Incognito mode is disabled.";
92 const char kIncognitoModeIsForced[] = "Incognito mode is forced. "
93 "Cannot open normal windows.";
94 const char kURLsNotAllowedInIncognitoError[] = "Cannot open URL \"*\" "
95 "in an incognito window.";
96 const char kInvalidUrlError[] = "Invalid url: \"*\".";
97 const char kNotImplementedError[] = "This call is not yet implemented";
98 const char kSupportedInWindowsOnlyError[] = "Supported in Windows only";
99 const char kInvalidWindowTypeError[] = "Invalid value for type";
100 const char kInvalidWindowStateError[] = "Invalid value for state";
101 const char kScreenshotsDisabled[] = "Taking screenshots has been disabled";
102 const char kCannotUpdateMuteDisabled[] =
103 "Failed to update mute state for tab *, --* must be enabled";
104 const char kCannotUpdateMuteCaptured[] =
105 "Cannot update mute state for tab *, tab has audio or video currently "
106 "being captured";
107 const char kCannotDetermineLanguageOfUnloadedTab[] =
108 "Cannot determine language: tab not loaded";
110 } // namespace tabs_constants
111 } // namespace extensions