extension_tabs_module_constants.cc revision 3345a6884c488ff3a535c2c9acdd33d74b37e311
1// Copyright (c) 2010 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 kPopulateKey[] = "populate"; 26const char kQualityKey[] = "quality"; 27const char kSelectedKey[] = "selected"; 28const char kStatusKey[] = "status"; 29const char kTabIdKey[] = "tabId"; 30const char kTabsKey[] = "tabs"; 31const char kTabUrlKey[] = "tabUrl"; 32const char kTitleKey[] = "title"; 33const char kToIndexKey[] = "toIndex"; 34const char kTopKey[] = "top"; 35const char kUrlKey[] = "url"; 36const char kWidthKey[] = "width"; 37const char kWindowIdKey[] = "windowId"; 38const char kWindowTypeKey[] = "type"; 39 40const char kFormatValueJpeg[] = "jpeg"; 41const char kFormatValuePng[] = "png"; 42const char kMimeTypeJpeg[] = "image/jpg"; 43const char kMimeTypePng[] = "image/png"; 44const char kStatusValueComplete[] = "complete"; 45const char kStatusValueLoading[] = "loading"; 46 47// TODO(mpcomplete): should we expose more specific detail, like devtools, app 48// panel, etc? 49const char kWindowTypeValueNormal[] = "normal"; 50const char kWindowTypeValuePopup[] = "popup"; 51const char kWindowTypeValueApp[] = "app"; 52 53const char kCanOnlyMoveTabsWithinNormalWindowsError[] = "Tabs can only be " 54 "moved to and from normal windows."; 55const char kNoCurrentWindowError[] = "No current window"; 56const char kNoLastFocusedWindowError[] = "No last-focused window"; 57const char kWindowNotFoundError[] = "No window with id: *."; 58const char kTabNotFoundError[] = "No tab with id: *."; 59const char kNoSelectedTabError[] = "No selected tab"; 60const char kInvalidUrlError[] = "Invalid url: \"*\"."; 61const char kInternalVisibleTabCaptureError[] = 62 "Internal error while trying to capture visible region of the current tab"; 63const char kNotImplementedError[] = "This call is not yet implemented"; 64const char kSupportedInWindowsOnlyError[] = "Supported in Windows only"; 65 66const char kNoCodeOrFileToExecuteError[] = "No source code or file specified."; 67const char kMoreThanOneValuesError[] = "Code and file should not be specified " 68 "at the same time in the second argument."; 69const char kLoadFileError[] = "Failed to load file: \"*\". "; 70const char kCannotUpdatePinnedTab[] = "Cannot update pinned tabs"; 71const char kCannotRemovePhantomTab[] = "Cannot remove phantom tabs"; 72const char kCannotDetermineLanguageOfUnloadedTab[] = 73 "Cannot determine language: tab not loaded"; 74 75} // namespace extension_tabs_module_constants 76