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