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

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

Issue 8586045: Add extension API to change window show state using chrome.windows.update(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 char kActiveKey[] = "active"; 9 const char kActiveKey[] = "active";
10 const char kAllFramesKey[] = "allFrames"; 10 const char kAllFramesKey[] = "allFrames";
(...skipping 12 matching lines...) Expand all
23 const char kLeftKey[] = "left"; 23 const char kLeftKey[] = "left";
24 const char kNewPositionKey[] = "newPosition"; 24 const char kNewPositionKey[] = "newPosition";
25 const char kNewWindowIdKey[] = "newWindowId"; 25 const char kNewWindowIdKey[] = "newWindowId";
26 const char kOldPositionKey[] = "oldPosition"; 26 const char kOldPositionKey[] = "oldPosition";
27 const char kOldWindowIdKey[] = "oldWindowId"; 27 const char kOldWindowIdKey[] = "oldWindowId";
28 const char kPinnedKey[] = "pinned"; 28 const char kPinnedKey[] = "pinned";
29 const char kPopulateKey[] = "populate"; 29 const char kPopulateKey[] = "populate";
30 const char kQualityKey[] = "quality"; 30 const char kQualityKey[] = "quality";
31 const char kHighlightedKey[] = "highlighted"; 31 const char kHighlightedKey[] = "highlighted";
32 const char kSelectedKey[] = "selected"; 32 const char kSelectedKey[] = "selected";
33 const char kShowStateKey[] = "state";
33 const char kStatusKey[] = "status"; 34 const char kStatusKey[] = "status";
34 const char kTabIdKey[] = "tabId"; 35 const char kTabIdKey[] = "tabId";
35 const char kTabIdsKey[] = "tabIds"; 36 const char kTabIdsKey[] = "tabIds";
36 const char kTabsKey[] = "tabs"; 37 const char kTabsKey[] = "tabs";
37 const char kTabUrlKey[] = "tabUrl"; 38 const char kTabUrlKey[] = "tabUrl";
38 const char kTitleKey[] = "title"; 39 const char kTitleKey[] = "title";
39 const char kToIndexKey[] = "toIndex"; 40 const char kToIndexKey[] = "toIndex";
40 const char kTopKey[] = "top"; 41 const char kTopKey[] = "top";
41 const char kUrlKey[] = "url"; 42 const char kUrlKey[] = "url";
42 const char kWindowClosing[] = "isWindowClosing"; 43 const char kWindowClosing[] = "isWindowClosing";
43 const char kWidthKey[] = "width"; 44 const char kWidthKey[] = "width";
44 const char kWindowIdKey[] = "windowId"; 45 const char kWindowIdKey[] = "windowId";
45 const char kWindowTypeKey[] = "type"; 46 const char kWindowTypeKey[] = "type";
46 const char kWindowTypeLongKey[] = "windowType"; 47 const char kWindowTypeLongKey[] = "windowType";
47 48
48 const char kFormatValueJpeg[] = "jpeg"; 49 const char kFormatValueJpeg[] = "jpeg";
49 const char kFormatValuePng[] = "png"; 50 const char kFormatValuePng[] = "png";
50 const char kMimeTypeJpeg[] = "image/jpeg"; 51 const char kMimeTypeJpeg[] = "image/jpeg";
51 const char kMimeTypePng[] = "image/png"; 52 const char kMimeTypePng[] = "image/png";
53 const char kShowStateValueNormal[] = "normal";
54 const char kShowStateValueMinimized[] = "minimized";
55 const char kShowStateValueMaximized[] = "maximized";
52 const char kStatusValueComplete[] = "complete"; 56 const char kStatusValueComplete[] = "complete";
53 const char kStatusValueLoading[] = "loading"; 57 const char kStatusValueLoading[] = "loading";
54 58
55 // TODO(mpcomplete): should we expose more specific detail, like devtools, app 59 // TODO(mpcomplete): should we expose more specific detail, like devtools, app
56 // panel, etc? 60 // panel, etc?
57 const char kWindowTypeValueNormal[] = "normal"; 61 const char kWindowTypeValueNormal[] = "normal";
58 const char kWindowTypeValuePopup[] = "popup"; 62 const char kWindowTypeValuePopup[] = "popup";
59 const char kWindowTypeValuePanel[] = "panel"; 63 const char kWindowTypeValuePanel[] = "panel";
60 const char kWindowTypeValueApp[] = "app"; 64 const char kWindowTypeValueApp[] = "app";
61 65
(...skipping 15 matching lines...) Expand all
77 const char kIncognitoModeIsDisabled[] = "Incognito mode is disabled."; 81 const char kIncognitoModeIsDisabled[] = "Incognito mode is disabled.";
78 const char kIncognitoModeIsForced[] = "Incognito mode is forced. " 82 const char kIncognitoModeIsForced[] = "Incognito mode is forced. "
79 "Cannot open normal windows."; 83 "Cannot open normal windows.";
80 const char kURLsNotAllowedInIncognitoError[] = "Cannot open URL \"*\" " 84 const char kURLsNotAllowedInIncognitoError[] = "Cannot open URL \"*\" "
81 "in an incognito window."; 85 "in an incognito window.";
82 const char kInvalidUrlError[] = "Invalid url: \"*\"."; 86 const char kInvalidUrlError[] = "Invalid url: \"*\".";
83 const char kInternalVisibleTabCaptureError[] = 87 const char kInternalVisibleTabCaptureError[] =
84 "Internal error while trying to capture visible region of the current tab"; 88 "Internal error while trying to capture visible region of the current tab";
85 const char kNotImplementedError[] = "This call is not yet implemented"; 89 const char kNotImplementedError[] = "This call is not yet implemented";
86 const char kSupportedInWindowsOnlyError[] = "Supported in Windows only"; 90 const char kSupportedInWindowsOnlyError[] = "Supported in Windows only";
91 const char kInvalidWindowTypeError[] = "Invalid value for type";
92 const char kInvalidWindowStateError[] = "Invalid value for state";
87 93
88 const char kNoCodeOrFileToExecuteError[] = "No source code or file specified."; 94 const char kNoCodeOrFileToExecuteError[] = "No source code or file specified.";
89 const char kMoreThanOneValuesError[] = "Code and file should not be specified " 95 const char kMoreThanOneValuesError[] = "Code and file should not be specified "
90 "at the same time in the second argument."; 96 "at the same time in the second argument.";
91 const char kLoadFileError[] = "Failed to load file: \"*\". "; 97 const char kLoadFileError[] = "Failed to load file: \"*\". ";
92 const char kCannotDetermineLanguageOfUnloadedTab[] = 98 const char kCannotDetermineLanguageOfUnloadedTab[] =
93 "Cannot determine language: tab not loaded"; 99 "Cannot determine language: tab not loaded";
94 100
95 } // namespace extension_tabs_module_constants 101 } // namespace extension_tabs_module_constants
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_tabs_module_constants.h ('k') | chrome/browser/extensions/extension_tabs_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698