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

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

Issue 9150052: Re-land alexbost's experimental Offscreen Tabs API work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor test cleanups. Created 8 years, 11 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
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 // all input event keys
10 const char kEventTypeKey[] = "type";
11 const char kEventAltKeyKey[] = "altKey";
12 const char kEventCtrlKeyKey[] = "ctrlKey";
13 const char kEventMetaKeyKey[] = "metaKey";
14 const char kEventShiftKeyKey[] = "shiftKey";
15
16 // mouse keys
17 const char kMouseEventButtonKey[] = "button";
18 const char kMouseEventWheelDeltaXKey[] = "wheelDeltaX";
19 const char kMouseEventWheelDeltaYKey[] = "wheelDeltaY";
20
21 // mouse values
22 const char kMouseEventTypeValueMousedown[] = "mousedown";
23 const char kMouseEventTypeValueMouseup[] = "mouseup";
24 const char kMouseEventTypeValueClick[] = "click";
25 const char kMouseEventTypeValueMousemove[] = "mousemove";
26 const char kMouseEventTypeValueMousewheel[] = "mousewheel";
27 const int kMouseEventButtonValueLeft = 0;
28 const int kMouseEventButtonValueMiddle = 1;
29 const int kMouseEventButtonValueRight = 2;
30
31 // keyboard keys
32 const char kKeyboardEventCharCodeKey[] = "charCode";
33 const char kKeyboardEventKeyCodeKey[] = "keyCode";
34
35 // keyboard values
36 const char kKeyboardEventTypeValueKeypress[] = "keypress";
37 const char kKeyboardEventTypeValueKeydown[] = "keydown";
38 const char kKeyboardEventTypeValueKeyup[] = "keyup";
39
40 // events
41 const char kDispatchEvent[] = "Event.dispatchJSON";
42 const char kEventOnUpdated[] = "experimental.offscreenTabs.onUpdated";
43
44 // errors
45 const char kCurrentTabNotFound[] = "No current tab found";
46 const char kInvalidKeyboardEventObjectError[] =
47 "Invalid or unexpected KeyboardEvent object";
48 const char kInvalidMouseEventObjectError[] =
49 "Invalid or unexpected MouseEvent object";
50 const char kNoMouseCoordinatesError[] = "No mouse coordinates specified";
51 const char kOffscreenTabNotFoundError[] = "No offscreen tab with id: *.";
52
53 } // namespace extension_offscreen_tabs_module_constants
54
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698