OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 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 Tabs API and the Windows 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 // TODO(alexbost): Some of these should be refactored |
| 14 |
| 15 // offscreen tab keys |
| 16 extern const char kIdKey[]; |
| 17 extern const char kUrlKey[]; |
| 18 extern const char kWidthKey[]; |
| 19 extern const char kHeightKey[]; |
| 20 |
| 21 // toDataUrl keys |
| 22 extern const char kFormatKey[]; |
| 23 extern const char kQualityKey[]; |
| 24 |
| 25 // mouse keys |
| 26 extern const char kMouseEventTypeKey[]; |
| 27 extern const char kMouseEventButtonKey[]; |
| 28 extern const char kMouseEventWheelDeltaXKey[]; |
| 29 extern const char kMouseEventWheelDeltaYKey[]; |
| 30 extern const char kMouseEventAltKeyKey[]; |
| 31 extern const char kMouseEventCtrlKeyKey[]; |
| 32 extern const char kMouseEventMetaKeyKey[]; |
| 33 extern const char kMouseEventShiftKeyKey[]; |
| 34 |
| 35 // toDataUrl values |
| 36 extern const char kFormatValueJpeg[]; |
| 37 extern const char kFormatValuePng[]; |
| 38 extern const char kMimeTypeJpeg[]; |
| 39 extern const char kMimeTypePng[]; |
| 40 |
| 41 // mouse values |
| 42 extern const char kMouseEventTypeValueMousedown[]; |
| 43 extern const char kMouseEventTypeValueMouseup[]; |
| 44 extern const char kMouseEventTypeValueClick[]; |
| 45 extern const char kMouseEventTypeValueMousemove[]; |
| 46 extern const char kMouseEventTypeValueMousewheel[]; |
| 47 extern const int kMouseEventButtonValueLeft; |
| 48 extern const int kMouseEventButtonValueMiddle; |
| 49 extern const int kMouseEventButtonValueRight; |
| 50 |
| 51 // keyboard keys |
| 52 extern const char kKeyboardEventTypeKey[]; |
| 53 extern const char kKeyboardEventCharCodeKey[]; |
| 54 extern const char kKeyboardEventKeyCodeKey[]; |
| 55 extern const char kKeyboardEventAltKeyKey[]; |
| 56 extern const char kKeyboardEventCtrlKeyKey[]; |
| 57 extern const char kKeyboardEventShiftKeyKey[]; |
| 58 |
| 59 // keyboard values |
| 60 extern const char kKeyboardEventTypeValueKeypress[]; |
| 61 extern const char kKeyboardEventTypeValueKeydown[]; |
| 62 extern const char kKeyboardEventTypeValueKeyup[]; |
| 63 |
| 64 // events |
| 65 extern const char kDispatchEvent[]; |
| 66 extern const char kEventOnUpdated[]; |
| 67 |
| 68 // errors |
| 69 extern const char kCurrentTabNotFound[]; |
| 70 extern const char kInternalVisibleTabCaptureError[]; |
| 71 extern const char kInvalidKeyboardEventObjectError[]; |
| 72 extern const char kInvalidMouseEventObjectError[]; |
| 73 extern const char kInvalidUrlError[]; |
| 74 extern const char kNoCrashBrowserError[]; |
| 75 extern const char kNoCurrentWindowError[]; |
| 76 extern const char kNoMouseCoordinatesError[]; |
| 77 extern const char kOffscreenTabNotFoundError[]; |
| 78 extern const char kTabNotFoundError[]; |
| 79 |
| 80 }; // namespace extension_offscreen_tabs_module_constants |
| 81 |
| 82 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_OFFSCREEN_TABS_MODULE_CONSTANTS_H
_ |
| 83 |
OLD | NEW |