Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Side by Side Diff: chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_constants.h

Issue 9234042: Re-land alexbost's experimental offscreenTabs API. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_API_OFFSCREEN_TABS_OFFSCREEN_TABS_CONSTANTS_H_
8 #define CHROME_BROWSER_EXTENSIONS_API_OFFSCREEN_TABS_OFFSCREEN_TABS_CONSTANTS_H_
9 #pragma once
10
11 namespace extensions {
12 namespace offscreen_tabs_constants {
13
14 // Input event keys.
15 extern const char kEventTypeKey[];
16 extern const char kEventAltKeyKey[];
17 extern const char kEventCtrlKeyKey[];
18 extern const char kEventMetaKeyKey[];
19 extern const char kEventShiftKeyKey[];
20
21 // Mouse event keys.
22 extern const char kMouseEventTypeKey[];
23 extern const char kMouseEventButtonKey[];
24 extern const char kMouseEventWheelDeltaXKey[];
25 extern const char kMouseEventWheelDeltaYKey[];
26
27 // Mouse event values.
28 extern const char kMouseEventTypeValueMousedown[];
29 extern const char kMouseEventTypeValueMouseup[];
30 extern const char kMouseEventTypeValueClick[];
31 extern const char kMouseEventTypeValueMousemove[];
32 extern const char kMouseEventTypeValueMousewheel[];
33 extern const int kMouseEventButtonValueLeft;
34 extern const int kMouseEventButtonValueMiddle;
35 extern const int kMouseEventButtonValueRight;
36
37 // Keyboard event keys.
38 extern const char kKeyboardEventTypeKey[];
39 extern const char kKeyboardEventCharCodeKey[];
40 extern const char kKeyboardEventKeyCodeKey[];
41
42 // Keyboard event values.
43 extern const char kKeyboardEventTypeValueKeypress[];
44 extern const char kKeyboardEventTypeValueKeydown[];
45 extern const char kKeyboardEventTypeValueKeyup[];
46
47 // Errors.
48 extern const char kCurrentTabNotFound[];
49 extern const char kInvalidKeyboardEventObjectError[];
50 extern const char kInvalidMouseEventObjectError[];
51 extern const char kNoMouseCoordinatesError[];
52 extern const char kOffscreenTabNotFoundError[];
53
54 } // namespace offscreen_tabs_constants
55 } // namespace extensions
56
57 #endif // CHROME_BROWSER_EXTENSIONS_API_OFFSCREEN_TABS_OFFSCREEN_TABS_CONSTANTS _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698