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

Side by Side Diff: chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_constants.cc

Issue 9796012: Revert 127833 - Re-land alexbost's experimental offscreenTabs API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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/api/offscreen_tabs/offscreen_tabs_constants. h"
6
7 namespace extensions {
8 namespace offscreen_tabs_constants {
9
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 const char kMouseEventButtonKey[] = "button";
17 const char kMouseEventWheelDeltaXKey[] = "wheelDeltaX";
18 const char kMouseEventWheelDeltaYKey[] = "wheelDeltaY";
19
20 const char kMouseEventTypeValueMousedown[] = "mousedown";
21 const char kMouseEventTypeValueMouseup[] = "mouseup";
22 const char kMouseEventTypeValueClick[] = "click";
23 const char kMouseEventTypeValueMousemove[] = "mousemove";
24 const char kMouseEventTypeValueMousewheel[] = "mousewheel";
25 const int kMouseEventButtonValueLeft = 0;
26 const int kMouseEventButtonValueMiddle = 1;
27 const int kMouseEventButtonValueRight = 2;
28
29 const char kKeyboardEventCharCodeKey[] = "charCode";
30 const char kKeyboardEventKeyCodeKey[] = "keyCode";
31
32 const char kKeyboardEventTypeValueKeypress[] = "keypress";
33 const char kKeyboardEventTypeValueKeydown[] = "keydown";
34 const char kKeyboardEventTypeValueKeyup[] = "keyup";
35
36 const char kCurrentTabNotFound[] = "No current tab found";
37 const char kInvalidKeyboardEventObjectError[] =
38 "Invalid or unexpected KeyboardEvent object";
39 const char kInvalidMouseEventObjectError[] =
40 "Invalid or unexpected MouseEvent object";
41 const char kNoMouseCoordinatesError[] = "No mouse coordinates specified";
42 const char kOffscreenTabNotFoundError[] = "No offscreen tab with id: *.";
43
44 } // namespace offscreen_Tabs_constants
45 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698