| Index: chrome/browser/extensions/extension_offscreen_tabs_module_constants.h
|
| diff --git a/chrome/browser/extensions/extension_offscreen_tabs_module_constants.h b/chrome/browser/extensions/extension_offscreen_tabs_module_constants.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a872973cd3229697c3898b5d8ccbdb8227a27028
|
| --- /dev/null
|
| +++ b/chrome/browser/extensions/extension_offscreen_tabs_module_constants.h
|
| @@ -0,0 +1,60 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +// Constants used for the Offscreen Tabs API.
|
| +
|
| +#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_OFFSCREEN_TABS_MODULE_CONSTANTS_H_
|
| +#define CHROME_BROWSER_EXTENSIONS_EXTENSION_OFFSCREEN_TABS_MODULE_CONSTANTS_H_
|
| +#pragma once
|
| +
|
| +namespace extension_offscreen_tabs_module_constants {
|
| +
|
| +// all input event keys
|
| +extern const char kEventTypeKey[];
|
| +extern const char kEventAltKeyKey[];
|
| +extern const char kEventCtrlKeyKey[];
|
| +extern const char kEventMetaKeyKey[];
|
| +extern const char kEventShiftKeyKey[];
|
| +
|
| +// mouse keys
|
| +extern const char kMouseEventTypeKey[];
|
| +extern const char kMouseEventButtonKey[];
|
| +extern const char kMouseEventWheelDeltaXKey[];
|
| +extern const char kMouseEventWheelDeltaYKey[];
|
| +
|
| +// mouse values
|
| +extern const char kMouseEventTypeValueMousedown[];
|
| +extern const char kMouseEventTypeValueMouseup[];
|
| +extern const char kMouseEventTypeValueClick[];
|
| +extern const char kMouseEventTypeValueMousemove[];
|
| +extern const char kMouseEventTypeValueMousewheel[];
|
| +extern const int kMouseEventButtonValueLeft;
|
| +extern const int kMouseEventButtonValueMiddle;
|
| +extern const int kMouseEventButtonValueRight;
|
| +
|
| +// keyboard keys
|
| +extern const char kKeyboardEventTypeKey[];
|
| +extern const char kKeyboardEventCharCodeKey[];
|
| +extern const char kKeyboardEventKeyCodeKey[];
|
| +
|
| +// keyboard values
|
| +extern const char kKeyboardEventTypeValueKeypress[];
|
| +extern const char kKeyboardEventTypeValueKeydown[];
|
| +extern const char kKeyboardEventTypeValueKeyup[];
|
| +
|
| +// events
|
| +extern const char kDispatchEvent[];
|
| +extern const char kEventOnUpdated[];
|
| +
|
| +// errors
|
| +extern const char kCurrentTabNotFound[];
|
| +extern const char kInvalidKeyboardEventObjectError[];
|
| +extern const char kInvalidMouseEventObjectError[];
|
| +extern const char kNoMouseCoordinatesError[];
|
| +extern const char kOffscreenTabNotFoundError[];
|
| +
|
| +}; // namespace extension_offscreen_tabs_module_constants
|
| +
|
| +#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_OFFSCREEN_TABS_MODULE_CONSTANTS_H_
|
| +
|
|
|