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