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

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

Issue 7720002: Chrome Extensions chrome.experimental.offscreenTabs.* API implementation, docs, and test. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 3 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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_offscreen_tabs_module_constants.h"
6
7 namespace extension_offscreen_tabs_module_constants {
8
9 // offscreen tab keys
10 const char kIdKey[] = "id";
11 const char kUrlKey[] = "url";
12 const char kWidthKey[] = "width";
13 const char kHeightKey[] = "height";
14
15 // toDataUrl keys
16 const char kFormatKey[] = "format";
17 const char kQualityKey[] = "quality";
18
19 // mouse keys
20 const char kMouseEventTypeKey[] = "type";
21 const char kMouseEventButtonKey[] = "button";
22 const char kMouseEventWheelDeltaXKey[] = "wheelDeltaX";
23 const char kMouseEventWheelDeltaYKey[] = "wheelDeltaY";
24 const char kMouseEventAltKeyKey[] = "altKey";
25 const char kMouseEventCtrlKeyKey[] = "ctrlKey";
26 const char kMouseEventMetaKeyKey[] = "metaKey";
27 const char kMouseEventShiftKeyKey[] = "shiftKey";
28
29 // toDataUrl values
30 const char kFormatValueJpeg[] = "jpeg";
31 const char kFormatValuePng[] = "png";
32 const char kMimeTypeJpeg[] = "image/jpeg";
33 const char kMimeTypePng[] = "image/png";
34
35 // mouse values
36 const char kMouseEventTypeValueMousedown[] = "mousedown";
37 const char kMouseEventTypeValueMouseup[] = "mouseup";
38 const char kMouseEventTypeValueClick[] = "click";
39 const char kMouseEventTypeValueMousemove[] = "mousemove";
40 const char kMouseEventTypeValueMousewheel[] = "mousewheel";
41 const int kMouseEventButtonValueLeft = 0;
42 const int kMouseEventButtonValueMiddle = 1;
43 const int kMouseEventButtonValueRight = 2;
44
45 // keyboard keys
46 const char kKeyboardEventTypeKey[] = "type";
47 const char kKeyboardEventCharCodeKey[] = "charCode";
48 const char kKeyboardEventKeyCodeKey[] = "keyCode";
49 const char kKeyboardEventAltKeyKey[] = "altKey";
50 const char kKeyboardEventCtrlKeyKey[] = "ctrlKey";
51 const char kKeyboardEventShiftKeyKey[] = "shiftKey";
52
53 // keyboard values
54 const char kKeyboardEventTypeValueKeypress[] = "keypress";
55 const char kKeyboardEventTypeValueKeydown[] = "keydown";
56 const char kKeyboardEventTypeValueKeyup[] = "keyup";
57
58 // events
59 const char kDispatchEvent[] = "Event.dispatchJSON";
60 const char kEventOnUpdated[] = "experimental.offscreenTabs.onUpdated";
61
62 // errors
63 const char kCurrentTabNotFound[] = "No current tab found";
64 const char kInternalVisibleTabCaptureError[] =
65 "Internal error while trying to capture visible region of the current tab";
66 const char kInvalidKeyboardEventObjectError[] =
67 "Invalid or unexpected KeyboardEvent object";
68 const char kInvalidMouseEventObjectError[] =
69 "Invalid or enexpected MouseEvent object";
70 const char kInvalidUrlError[] = "Invalid url: \"*\".";
71 const char kNoCrashBrowserError[] = "I'm sorry. I'm afraid I can't do that.";
72 const char kNoCurrentWindowError[] = "No current window";
73 const char kNoMouseCoordinatesError[] = "No mouse coordinates specified";
74 const char kOffscreenTabNotFoundError[] = "No offscreen tab with id: *.";
75 const char kTabNotFoundError[] = "No tab with id: *.";
76
77 } // namespace extension_offscreen_tabs_module_constants
78
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698