| 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 // Constants used for the Offscreen Tabs API. |
| 6 |
| 7 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_OFFSCREEN_TABS_MODULE_CONSTANTS_H_ |
| 8 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_OFFSCREEN_TABS_MODULE_CONSTANTS_H_ |
| 9 #pragma once |
| 10 |
| 11 namespace extension_offscreen_tabs_module_constants { |
| 12 |
| 13 // all input event keys |
| 14 extern const char kEventTypeKey[]; |
| 15 extern const char kEventAltKeyKey[]; |
| 16 extern const char kEventCtrlKeyKey[]; |
| 17 extern const char kEventMetaKeyKey[]; |
| 18 extern const char kEventShiftKeyKey[]; |
| 19 |
| 20 // mouse keys |
| 21 extern const char kMouseEventTypeKey[]; |
| 22 extern const char kMouseEventButtonKey[]; |
| 23 extern const char kMouseEventWheelDeltaXKey[]; |
| 24 extern const char kMouseEventWheelDeltaYKey[]; |
| 25 |
| 26 // mouse values |
| 27 extern const char kMouseEventTypeValueMousedown[]; |
| 28 extern const char kMouseEventTypeValueMouseup[]; |
| 29 extern const char kMouseEventTypeValueClick[]; |
| 30 extern const char kMouseEventTypeValueMousemove[]; |
| 31 extern const char kMouseEventTypeValueMousewheel[]; |
| 32 extern const int kMouseEventButtonValueLeft; |
| 33 extern const int kMouseEventButtonValueMiddle; |
| 34 extern const int kMouseEventButtonValueRight; |
| 35 |
| 36 // keyboard keys |
| 37 extern const char kKeyboardEventTypeKey[]; |
| 38 extern const char kKeyboardEventCharCodeKey[]; |
| 39 extern const char kKeyboardEventKeyCodeKey[]; |
| 40 |
| 41 // keyboard values |
| 42 extern const char kKeyboardEventTypeValueKeypress[]; |
| 43 extern const char kKeyboardEventTypeValueKeydown[]; |
| 44 extern const char kKeyboardEventTypeValueKeyup[]; |
| 45 |
| 46 // events |
| 47 extern const char kDispatchEvent[]; |
| 48 extern const char kEventOnUpdated[]; |
| 49 |
| 50 // errors |
| 51 extern const char kCurrentTabNotFound[]; |
| 52 extern const char kInvalidKeyboardEventObjectError[]; |
| 53 extern const char kInvalidMouseEventObjectError[]; |
| 54 extern const char kNoMouseCoordinatesError[]; |
| 55 extern const char kOffscreenTabNotFoundError[]; |
| 56 |
| 57 }; // namespace extension_offscreen_tabs_module_constants |
| 58 |
| 59 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_OFFSCREEN_TABS_MODULE_CONSTANTS_H
_ |
| 60 |
| OLD | NEW |