| Index: chrome/browser/guest_view/web_view/web_view_constants.h
|
| diff --git a/chrome/browser/guest_view/web_view/web_view_constants.h b/chrome/browser/guest_view/web_view/web_view_constants.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e28d59de3a071daedb9c5b6fb04364b87e06e86f
|
| --- /dev/null
|
| +++ b/chrome/browser/guest_view/web_view/web_view_constants.h
|
| @@ -0,0 +1,118 @@
|
| +// 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 CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_
|
| +#define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_
|
| +
|
| +namespace webview {
|
| +
|
| +// Attributes.
|
| +extern const char kAttributeAutoSize[];
|
| +extern const char kAttributeMaxHeight[];
|
| +extern const char kAttributeMaxWidth[];
|
| +extern const char kAttributeMinHeight[];
|
| +extern const char kAttributeMinWidth[];
|
| +
|
| +// API namespace.
|
| +// TODO(kalman): Consolidate this with the other API constants.
|
| +extern const char kAPINamespace[];
|
| +
|
| +// Events.
|
| +extern const char kEventClose[];
|
| +extern const char kEventConsoleMessage[];
|
| +extern const char kEventContentLoad[];
|
| +extern const char kEventContextMenu[];
|
| +extern const char kEventDialog[];
|
| +extern const char kEventExit[];
|
| +extern const char kEventFindReply[];
|
| +extern const char kEventFrameNameChanged[];
|
| +extern const char kEventLoadAbort[];
|
| +extern const char kEventLoadCommit[];
|
| +extern const char kEventLoadProgress[];
|
| +extern const char kEventLoadRedirect[];
|
| +extern const char kEventLoadStart[];
|
| +extern const char kEventLoadStop[];
|
| +extern const char kEventMessage[];
|
| +extern const char kEventNewWindow[];
|
| +extern const char kEventPermissionRequest[];
|
| +extern const char kEventResponsive[];
|
| +extern const char kEventSizeChanged[];
|
| +extern const char kEventUnresponsive[];
|
| +extern const char kEventZoomChange[];
|
| +
|
| +// Event related constants.
|
| +extern const char kWebViewEventPrefix[];
|
| +
|
| +// Parameters/properties on events.
|
| +extern const char kContextMenuItems[];
|
| +extern const char kDefaultPromptText[];
|
| +extern const char kFindSearchText[];
|
| +extern const char kFindFinalUpdate[];
|
| +extern const char kInitialHeight[];
|
| +extern const char kInitialWidth[];
|
| +extern const char kLastUnlockedBySelf[];
|
| +extern const char kLevel[];
|
| +extern const char kLine[];
|
| +extern const char kMessage[];
|
| +extern const char kMessageText[];
|
| +extern const char kMessageType[];
|
| +extern const char kName[];
|
| +extern const char kNewHeight[];
|
| +extern const char kNewURL[];
|
| +extern const char kNewWidth[];
|
| +extern const char kOldHeight[];
|
| +extern const char kOldURL[];
|
| +extern const char kPermission[];
|
| +extern const char kPermissionTypeDialog[];
|
| +extern const char kPermissionTypeDownload[];
|
| +extern const char kPermissionTypeFileSystem[];
|
| +extern const char kPermissionTypeGeolocation[];
|
| +extern const char kPermissionTypeLoadPlugin[];
|
| +extern const char kPermissionTypeMedia[];
|
| +extern const char kPermissionTypeNewWindow[];
|
| +extern const char kPermissionTypePointerLock[];
|
| +extern const char kOldWidth[];
|
| +extern const char kProcessId[];
|
| +extern const char kProgress[];
|
| +extern const char kReason[];
|
| +extern const char kRequestId[];
|
| +extern const char kSourceId[];
|
| +extern const char kTargetURL[];
|
| +extern const char kWindowID[];
|
| +extern const char kWindowOpenDisposition[];
|
| +extern const char kOldZoomFactor[];
|
| +extern const char kNewZoomFactor[];
|
| +
|
| +// Internal parameters/properties on events.
|
| +extern const char kInternalCurrentEntryIndex[];
|
| +extern const char kInternalEntryCount[];
|
| +extern const char kInternalProcessId[];
|
| +
|
| +// Parameters to callback functions.
|
| +extern const char kFindNumberOfMatches[];
|
| +extern const char kFindActiveMatchOrdinal[];
|
| +extern const char kFindSelectionRect[];
|
| +extern const char kFindRectLeft[];
|
| +extern const char kFindRectTop[];
|
| +extern const char kFindRectWidth[];
|
| +extern const char kFindRectHeight[];
|
| +extern const char kFindCanceled[];
|
| +extern const char kFindDone[];
|
| +
|
| +// Initialization parameters.
|
| +extern const char kParameterUserAgentOverride[];
|
| +
|
| +// Miscellaneous.
|
| +extern const char kMenuItemCommandId[];
|
| +extern const char kMenuItemLabel[];
|
| +extern const char kPersistPrefix[];
|
| +extern const char kStoragePartitionId[];
|
| +extern const unsigned int kMaxOutstandingPermissionRequests;
|
| +extern const int kInvalidPermissionRequestID;
|
| +
|
| +} // namespace webview
|
| +
|
| +#endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_
|
|
|