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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_constants.h
diff --git a/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_constants.h b/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..d5745901cef48b5a65f87a89f37f2569cae75426
--- /dev/null
+++ b/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_constants.h
@@ -0,0 +1,57 @@
+// 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_API_OFFSCREEN_TABS_OFFSCREEN_TABS_CONSTANTS_H_
+#define CHROME_BROWSER_EXTENSIONS_API_OFFSCREEN_TABS_OFFSCREEN_TABS_CONSTANTS_H_
+#pragma once
+
+namespace extensions {
+namespace offscreen_tabs_constants {
+
+// Input event keys.
+extern const char kEventTypeKey[];
+extern const char kEventAltKeyKey[];
+extern const char kEventCtrlKeyKey[];
+extern const char kEventMetaKeyKey[];
+extern const char kEventShiftKeyKey[];
+
+// Mouse event keys.
+extern const char kMouseEventTypeKey[];
+extern const char kMouseEventButtonKey[];
+extern const char kMouseEventWheelDeltaXKey[];
+extern const char kMouseEventWheelDeltaYKey[];
+
+// Mouse event 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 event keys.
+extern const char kKeyboardEventTypeKey[];
+extern const char kKeyboardEventCharCodeKey[];
+extern const char kKeyboardEventKeyCodeKey[];
+
+// Keyboard event values.
+extern const char kKeyboardEventTypeValueKeypress[];
+extern const char kKeyboardEventTypeValueKeydown[];
+extern const char kKeyboardEventTypeValueKeyup[];
+
+// Errors.
+extern const char kCurrentTabNotFound[];
+extern const char kInvalidKeyboardEventObjectError[];
+extern const char kInvalidMouseEventObjectError[];
+extern const char kNoMouseCoordinatesError[];
+extern const char kOffscreenTabNotFoundError[];
+
+} // namespace offscreen_tabs_constants
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_OFFSCREEN_TABS_OFFSCREEN_TABS_CONSTANTS_H_

Powered by Google App Engine
This is Rietveld 408576698