summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_offscreen_tabs_module_constants.h
diff options
context:
space:
mode:
authoralexbost@google.com <alexbost@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-18 01:02:16 +0000
committeralexbost@google.com <alexbost@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-18 01:02:16 +0000
commitc135686acf4c9b2a2b9cd10ba6a6ecf1b67a8d05 (patch)
treecf0028e6bdfb1a674e1e23de095f69d8471a0a26 /chrome/browser/extensions/extension_offscreen_tabs_module_constants.h
parentc3823c74a27db0b41ad8648ee985293eb6ab141d (diff)
downloadchromium_src-c135686acf4c9b2a2b9cd10ba6a6ecf1b67a8d05.zip
chromium_src-c135686acf4c9b2a2b9cd10ba6a6ecf1b67a8d05.tar.gz
chromium_src-c135686acf4c9b2a2b9cd10ba6a6ecf1b67a8d05.tar.bz2
Description and Demo:
https://sites.google.com/a/chromium.org/dev/developers/design-documents/extensions/offscreen-tabs Presentation: https://docs.google.com/a/google.com/present/view?id=dgjqt449_3gxsnm3qj Spec: http://www.corp.google.com/~alexbost/no_crawl/docs/experimental.offscreenTabs.html Review URL: http://codereview.chromium.org/7720002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101678 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_offscreen_tabs_module_constants.h')
-rw-r--r--chrome/browser/extensions/extension_offscreen_tabs_module_constants.h83
1 files changed, 83 insertions, 0 deletions
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 0000000..1ae5200
--- /dev/null
+++ b/chrome/browser/extensions/extension_offscreen_tabs_module_constants.h
@@ -0,0 +1,83 @@
+// Copyright (c) 2011 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 Tabs API and the Windows 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 {
+
+// TODO(alexbost): Some of these should be refactored
+
+// offscreen tab keys
+extern const char kIdKey[];
+extern const char kUrlKey[];
+extern const char kWidthKey[];
+extern const char kHeightKey[];
+
+// toDataUrl keys
+extern const char kFormatKey[];
+extern const char kQualityKey[];
+
+// mouse keys
+extern const char kMouseEventTypeKey[];
+extern const char kMouseEventButtonKey[];
+extern const char kMouseEventWheelDeltaXKey[];
+extern const char kMouseEventWheelDeltaYKey[];
+extern const char kMouseEventAltKeyKey[];
+extern const char kMouseEventCtrlKeyKey[];
+extern const char kMouseEventMetaKeyKey[];
+extern const char kMouseEventShiftKeyKey[];
+
+// toDataUrl values
+extern const char kFormatValueJpeg[];
+extern const char kFormatValuePng[];
+extern const char kMimeTypeJpeg[];
+extern const char kMimeTypePng[];
+
+// 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[];
+extern const char kKeyboardEventAltKeyKey[];
+extern const char kKeyboardEventCtrlKeyKey[];
+extern const char kKeyboardEventShiftKeyKey[];
+
+// 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 kInternalVisibleTabCaptureError[];
+extern const char kInvalidKeyboardEventObjectError[];
+extern const char kInvalidMouseEventObjectError[];
+extern const char kInvalidUrlError[];
+extern const char kNoCrashBrowserError[];
+extern const char kNoCurrentWindowError[];
+extern const char kNoMouseCoordinatesError[];
+extern const char kOffscreenTabNotFoundError[];
+extern const char kTabNotFoundError[];
+
+}; // namespace extension_offscreen_tabs_module_constants
+
+#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_OFFSCREEN_TABS_MODULE_CONSTANTS_H_
+