Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(392)

Side by Side Diff: chrome/browser/extensions/extension_tabs_module_constants.cc

Issue 1527015: Support PNG and quality control in chrome.tabs.captureVisibleTab(). (Closed)
Patch Set: Rebase for checkin. Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/extension_tabs_module_constants.h" 5 #include "chrome/browser/extensions/extension_tabs_module_constants.h"
6 6
7 namespace extension_tabs_module_constants { 7 namespace extension_tabs_module_constants {
8 8
9 const wchar_t kAllFramesKey[] = L"allFrames"; 9 const wchar_t kAllFramesKey[] = L"allFrames";
10 const wchar_t kCodeKey[] = L"code"; 10 const wchar_t kCodeKey[] = L"code";
11 const wchar_t kFavIconUrlKey[] = L"favIconUrl"; 11 const wchar_t kFavIconUrlKey[] = L"favIconUrl";
12 const wchar_t kFileKey[] = L"file"; 12 const wchar_t kFileKey[] = L"file";
13 const wchar_t kFocusedKey[] = L"focused"; 13 const wchar_t kFocusedKey[] = L"focused";
14 const wchar_t kFormatKey[] = L"format";
14 const wchar_t kFromIndexKey[] = L"fromIndex"; 15 const wchar_t kFromIndexKey[] = L"fromIndex";
15 const wchar_t kHeightKey[] = L"height"; 16 const wchar_t kHeightKey[] = L"height";
16 const wchar_t kIdKey[] = L"id"; 17 const wchar_t kIdKey[] = L"id";
18 const wchar_t kIncognitoKey[] = L"incognito";
17 const wchar_t kIndexKey[] = L"index"; 19 const wchar_t kIndexKey[] = L"index";
18 const wchar_t kLeftKey[] = L"left"; 20 const wchar_t kLeftKey[] = L"left";
19 const wchar_t kNewPositionKey[] = L"newPosition"; 21 const wchar_t kNewPositionKey[] = L"newPosition";
20 const wchar_t kNewWindowIdKey[] = L"newWindowId"; 22 const wchar_t kNewWindowIdKey[] = L"newWindowId";
21 const wchar_t kOldPositionKey[] = L"oldPosition"; 23 const wchar_t kOldPositionKey[] = L"oldPosition";
22 const wchar_t kOldWindowIdKey[] = L"oldWindowId"; 24 const wchar_t kOldWindowIdKey[] = L"oldWindowId";
23 const wchar_t kPopulateKey[] = L"populate"; 25 const wchar_t kPopulateKey[] = L"populate";
26 const wchar_t kQualityKey[] = L"quality";
24 const wchar_t kSelectedKey[] = L"selected"; 27 const wchar_t kSelectedKey[] = L"selected";
25 const wchar_t kStatusKey[] = L"status"; 28 const wchar_t kStatusKey[] = L"status";
26 const wchar_t kTabIdKey[] = L"tabId"; 29 const wchar_t kTabIdKey[] = L"tabId";
27 const wchar_t kTabsKey[] = L"tabs"; 30 const wchar_t kTabsKey[] = L"tabs";
28 const wchar_t kTabUrlKey[] = L"tabUrl"; 31 const wchar_t kTabUrlKey[] = L"tabUrl";
29 const wchar_t kTitleKey[] = L"title"; 32 const wchar_t kTitleKey[] = L"title";
30 const wchar_t kToIndexKey[] = L"toIndex"; 33 const wchar_t kToIndexKey[] = L"toIndex";
31 const wchar_t kTopKey[] = L"top"; 34 const wchar_t kTopKey[] = L"top";
32 const wchar_t kUrlKey[] = L"url"; 35 const wchar_t kUrlKey[] = L"url";
33 const wchar_t kWidthKey[] = L"width"; 36 const wchar_t kWidthKey[] = L"width";
34 const wchar_t kWindowIdKey[] = L"windowId"; 37 const wchar_t kWindowIdKey[] = L"windowId";
35 const wchar_t kIncognitoKey[] = L"incognito";
36 const wchar_t kWindowTypeKey[] = L"type"; 38 const wchar_t kWindowTypeKey[] = L"type";
37 39
40 const char kFormatValueJpeg[] = "jpeg";
41 const char kFormatValuePng[] = "png";
42 const char kMimeTypeJpeg[] = "image/jpg";
43 const char kMimeTypePng[] = "image/png";
38 const char kStatusValueComplete[] = "complete"; 44 const char kStatusValueComplete[] = "complete";
39 const char kStatusValueLoading[] = "loading"; 45 const char kStatusValueLoading[] = "loading";
40 46
41 // TODO(mpcomplete): should we expose more specific detail, like devtools, app 47 // TODO(mpcomplete): should we expose more specific detail, like devtools, app
42 // panel, etc? 48 // panel, etc?
43 const char kWindowTypeValueNormal[] = "normal"; 49 const char kWindowTypeValueNormal[] = "normal";
44 const char kWindowTypeValuePopup[] = "popup"; 50 const char kWindowTypeValuePopup[] = "popup";
45 const char kWindowTypeValueApp[] = "app"; 51 const char kWindowTypeValueApp[] = "app";
46 52
47 const char kNoCurrentWindowError[] = "No current window"; 53 const char kNoCurrentWindowError[] = "No current window";
(...skipping 10 matching lines...) Expand all
58 const char kNoCodeOrFileToExecuteError[] = "No source code or file specified."; 64 const char kNoCodeOrFileToExecuteError[] = "No source code or file specified.";
59 const char kMoreThanOneValuesError[] = "Code and file should not be specified " 65 const char kMoreThanOneValuesError[] = "Code and file should not be specified "
60 "at the same time in the second argument."; 66 "at the same time in the second argument.";
61 const char kLoadFileError[] = "Failed to load file: \"*\". "; 67 const char kLoadFileError[] = "Failed to load file: \"*\". ";
62 const char kCannotUpdatePinnedTab[] = "Cannot update pinned tabs"; 68 const char kCannotUpdatePinnedTab[] = "Cannot update pinned tabs";
63 const char kCannotRemovePhantomTab[] = "Cannot remove phantom tabs"; 69 const char kCannotRemovePhantomTab[] = "Cannot remove phantom tabs";
64 const char kCannotDetermineLanguageOfUnloadedTab[] = 70 const char kCannotDetermineLanguageOfUnloadedTab[] =
65 "Cannot determine language: tab not loaded"; 71 "Cannot determine language: tab not loaded";
66 72
67 } // namespace extension_tabs_module_constants 73 } // namespace extension_tabs_module_constants
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_tabs_module_constants.h ('k') | chrome/common/extensions/api/extension_api.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698