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

Side by Side Diff: extensions/browser/guest_view/web_view/web_view_constants.cc

Issue 1026383003: <webview>: make context menus cancellable using JS API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments from yoz@ Created 5 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
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_constants.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "extensions/browser/guest_view/web_view/web_view_constants.h" 5 #include "extensions/browser/guest_view/web_view/web_view_constants.h"
6 6
7 namespace webview { 7 namespace webview {
8 8
9 // Attributes. 9 // Attributes.
10 const char kAttributeAllowTransparency[] = "allowtransparency"; 10 const char kAttributeAllowTransparency[] = "allowtransparency";
11 const char kAttributeAllowScaling[] = "allowscaling"; 11 const char kAttributeAllowScaling[] = "allowscaling";
12 const char kAttributeName[] = "name"; 12 const char kAttributeName[] = "name";
13 const char kAttributeSrc[] = "src"; 13 const char kAttributeSrc[] = "src";
14 14
15 // API namespace. 15 // API namespace.
16 const char kAPINamespace[] = "webViewInternal"; 16 const char kAPINamespace[] = "webViewInternal";
17 17
18 // API error messages. 18 // API error messages.
19 const char kAPILoadDataInvalidDataURL[] = "Invalid data URL \"%s\"."; 19 const char kAPILoadDataInvalidDataURL[] = "Invalid data URL \"%s\".";
20 const char kAPILoadDataInvalidBaseURL[] = "Invalid base URL \"%s\"."; 20 const char kAPILoadDataInvalidBaseURL[] = "Invalid base URL \"%s\".";
21 const char kAPILoadDataInvalidVirtualURL[] = "Invalid virtual URL \"%s\"."; 21 const char kAPILoadDataInvalidVirtualURL[] = "Invalid virtual URL \"%s\".";
22 22
23 // Events. 23 // Events.
24 const char kEventClose[] = "webViewInternal.onClose"; 24 const char kEventClose[] = "webViewInternal.onClose";
25 const char kEventConsoleMessage[] = "webViewInternal.onConsoleMessage"; 25 const char kEventConsoleMessage[] = "webViewInternal.onConsoleMessage";
26 const char kEventContentLoad[] = "webViewInternal.onContentLoad"; 26 const char kEventContentLoad[] = "webViewInternal.onContentLoad";
27 const char kEventContextMenu[] = "chromeWebViewInternal.contextmenu"; 27 const char kEventContextMenuShow[] = "chromeWebViewInternal.onContextMenuShow";
28 const char kEventDialog[] = "webViewInternal.onDialog"; 28 const char kEventDialog[] = "webViewInternal.onDialog";
29 const char kEventDropLink[] = "webViewInternal.onDropLink"; 29 const char kEventDropLink[] = "webViewInternal.onDropLink";
30 const char kEventExit[] = "webViewInternal.onExit"; 30 const char kEventExit[] = "webViewInternal.onExit";
31 const char kEventExitFullscreen[] = "webViewInternal.onExitFullscreen"; 31 const char kEventExitFullscreen[] = "webViewInternal.onExitFullscreen";
32 const char kEventFindReply[] = "webViewInternal.onFindReply"; 32 const char kEventFindReply[] = "webViewInternal.onFindReply";
33 const char kEventFrameNameChanged[] = "webViewInternal.onFrameNameChanged"; 33 const char kEventFrameNameChanged[] = "webViewInternal.onFrameNameChanged";
34 const char kEventLoadAbort[] = "webViewInternal.onLoadAbort"; 34 const char kEventLoadAbort[] = "webViewInternal.onLoadAbort";
35 const char kEventLoadCommit[] = "webViewInternal.onLoadCommit"; 35 const char kEventLoadCommit[] = "webViewInternal.onLoadCommit";
36 const char kEventLoadProgress[] = "webViewInternal.onLoadProgress"; 36 const char kEventLoadProgress[] = "webViewInternal.onLoadProgress";
37 const char kEventLoadRedirect[] = "webViewInternal.onLoadRedirect"; 37 const char kEventLoadRedirect[] = "webViewInternal.onLoadRedirect";
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 // Miscellaneous. 112 // Miscellaneous.
113 const char kMenuItemCommandId[] = "commandId"; 113 const char kMenuItemCommandId[] = "commandId";
114 const char kMenuItemLabel[] = "label"; 114 const char kMenuItemLabel[] = "label";
115 const char kPersistPrefix[] = "persist:"; 115 const char kPersistPrefix[] = "persist:";
116 const char kStoragePartitionId[] = "partition"; 116 const char kStoragePartitionId[] = "partition";
117 const unsigned int kMaxOutstandingPermissionRequests = 1024; 117 const unsigned int kMaxOutstandingPermissionRequests = 1024;
118 const int kInvalidPermissionRequestID = 0; 118 const int kInvalidPermissionRequestID = 0;
119 119
120 } // namespace webview 120 } // namespace webview
OLDNEW
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698