| OLD | NEW |
| (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 | |
| OLD | NEW |