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