summaryrefslogtreecommitdiffstats
path: root/components/guest_view/common/guest_view_constants.h
diff options
context:
space:
mode:
Diffstat (limited to 'components/guest_view/common/guest_view_constants.h')
-rw-r--r--components/guest_view/common/guest_view_constants.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/components/guest_view/common/guest_view_constants.h b/components/guest_view/common/guest_view_constants.h
new file mode 100644
index 0000000..ef9066e
--- /dev/null
+++ b/components/guest_view/common/guest_view_constants.h
@@ -0,0 +1,50 @@
+// Copyright 2014 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 WebView API.
+
+#ifndef COMPONENTS_GUEST_VIEW_COMMON_GUEST_VIEW_CONSTANTS_H_
+#define COMPONENTS_GUEST_VIEW_COMMON_GUEST_VIEW_CONSTANTS_H_
+
+namespace guest_view {
+
+// Sizing attributes/parameters.
+extern const char kAttributeAutoSize[];
+extern const char kAttributeMaxHeight[];
+extern const char kAttributeMaxWidth[];
+extern const char kAttributeMinHeight[];
+extern const char kAttributeMinWidth[];
+extern const char kElementWidth[];
+extern const char kElementHeight[];
+extern const char kElementSizeIsLogical[];
+
+// Events.
+extern const char kEventResize[];
+
+// Parameters/properties on events.
+extern const char kCode[];
+extern const char kContentWindowID[];
+extern const char kID[];
+extern const char kIsTopLevel[];
+extern const char kNewWidth[];
+extern const char kNewHeight[];
+extern const char kOldWidth[];
+extern const char kOldHeight[];
+extern const char kReason[];
+extern const char kUrl[];
+extern const char kUserGesture[];
+
+// Initialization parameters.
+extern const char kParameterApi[];
+extern const char kParameterInstanceId[];
+
+// Other.
+extern const char kGuestViewManagerKeyName[];
+extern const int kInstanceIDNone;
+extern const int kDefaultWidth;
+extern const int kDefaultHeight;
+
+} // namespace guest_view
+
+#endif // COMPONENTS_GUEST_VIEW_COMMON_GUEST_VIEW_CONSTANTS_H_