1 // Copyright (c) 2011 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/extension_tabs_module_constants.h" 6 7 namespace extension_tabs_module_constants { 8 9 const char kAllFramesKey[] = "allFrames"; 10 const char kCodeKey[] = "code"; 11 const char kFaviconUrlKey[] = "favIconUrl"; 12 const char kFileKey[] = "file"; 13 const char kFocusedKey[] = "focused"; 14 const char kFormatKey[] = "format"; 15 const char kFromIndexKey[] = "fromIndex"; 16 const char kHeightKey[] = "height"; 17 const char kIdKey[] = "id"; 18 const char kIncognitoKey[] = "incognito"; 19 const char kIndexKey[] = "index"; 20 const char kLeftKey[] = "left"; 21 const char kNewPositionKey[] = "newPosition"; 22 const char kNewWindowIdKey[] = "newWindowId"; 23 const char kOldPositionKey[] = "oldPosition"; 24 const char kOldWindowIdKey[] = "oldWindowId"; 25 const char kPinnedKey[] = "pinned"; 26 const char kPopulateKey[] = "populate"; 27 const char kQualityKey[] = "quality"; 28 const char kSelectedKey[] = "selected"; 29 const char kStatusKey[] = "status"; 30 const char kTabIdKey[] = "tabId"; 31 const char kTabsKey[] = "tabs"; 32 const char kTabUrlKey[] = "tabUrl"; 33 const char kTitleKey[] = "title"; 34 const char kToIndexKey[] = "toIndex"; 35 const char kTopKey[] = "top"; 36 const char kUrlKey[] = "url"; 37 const char kWindowClosing[] = "isWindowClosing"; 38 const char kWidthKey[] = "width"; 39 const char kWindowIdKey[] = "windowId"; 40 const char kWindowTypeKey[] = "type"; 41 42 const char kFormatValueJpeg[] = "jpeg"; 43 const char kFormatValuePng[] = "png"; 44 const char kMimeTypeJpeg[] = "image/jpeg"; 45 const char kMimeTypePng[] = "image/png"; 46 const char kStatusValueComplete[] = "complete"; 47 const char kStatusValueLoading[] = "loading"; 48 49 // TODO(mpcomplete): should we expose more specific detail, like devtools, app 50 // panel, etc? 51 const char kWindowTypeValueNormal[] = "normal"; 52 const char kWindowTypeValuePopup[] = "popup"; 53 const char kWindowTypeValuePanel[] = "panel"; 54 const char kWindowTypeValueApp[] = "app"; 55 56 const char kCanOnlyMoveTabsWithinNormalWindowsError[] = "Tabs can only be " 57 "moved to and from normal windows."; 58 const char kCanOnlyMoveTabsWithinSameProfileError[] = "Tabs can only be moved " 59 "between windows in the same profile."; 60 const char kNoCrashBrowserError[] = 61 "I'm sorry. I'm afraid I can't do that."; 62 const char kNoCurrentWindowError[] = "No current window"; 63 const char kNoLastFocusedWindowError[] = "No last-focused window"; 64 const char kWindowNotFoundError[] = "No window with id: *."; 65 const char kTabNotFoundError[] = "No tab with id: *."; 66 const char kTabStripNotEditableError[] = 67 "Tabs cannot be edited right now (user may be dragging a tab)."; 68 const char kNoSelectedTabError[] = "No selected tab"; 69 const char kIncognitoModeIsDisabled[] = "Incognito mode is disabled."; 70 const char kInvalidUrlError[] = "Invalid url: \"*\"."; 71 const char kInternalVisibleTabCaptureError[] = 72 "Internal error while trying to capture visible region of the current tab"; 73 const char kNotImplementedError[] = "This call is not yet implemented"; 74 const char kSupportedInWindowsOnlyError[] = "Supported in Windows only"; 75 76 const char kNoCodeOrFileToExecuteError[] = "No source code or file specified."; 77 const char kMoreThanOneValuesError[] = "Code and file should not be specified " 78 "at the same time in the second argument."; 79 const char kLoadFileError[] = "Failed to load file: \"*\". "; 80 const char kCannotDetermineLanguageOfUnloadedTab[] = 81 "Cannot determine language: tab not loaded"; 82 83 } // namespace extension_tabs_module_constants 84