| OLD | NEW |
| 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 "chrome/browser/guest_view/web_view/web_view_constants.h" | 5 #include "chrome/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 kAttributeAutoSize[] = "autosize"; | 10 const char kAttributeAutoSize[] = "autosize"; |
| 11 const char kAttributeMaxHeight[] = "maxheight"; | 11 const char kAttributeMaxHeight[] = "maxheight"; |
| 12 const char kAttributeMaxWidth[] = "maxwidth"; | 12 const char kAttributeMaxWidth[] = "maxwidth"; |
| 13 const char kAttributeMinHeight[] = "minheight"; | 13 const char kAttributeMinHeight[] = "minheight"; |
| 14 const char kAttributeMinWidth[] = "minwidth"; | 14 const char kAttributeMinWidth[] = "minwidth"; |
| 15 | 15 |
| 16 // API namespace. |
| 17 const char kAPINamespace[] = "webViewInternal"; |
| 18 |
| 16 // Events. | 19 // Events. |
| 17 const char kEventClose[] = "webViewInternal.onClose"; | 20 const char kEventClose[] = "webViewInternal.onClose"; |
| 18 const char kEventConsoleMessage[] = "webViewInternal.onConsoleMessage"; | 21 const char kEventConsoleMessage[] = "webViewInternal.onConsoleMessage"; |
| 19 const char kEventContentLoad[] = "webViewInternal.onContentLoad"; | 22 const char kEventContentLoad[] = "webViewInternal.onContentLoad"; |
| 20 const char kEventContextMenu[] = "webViewInternal.contextmenu"; | 23 const char kEventContextMenu[] = "webViewInternal.contextmenu"; |
| 21 const char kEventDialog[] = "webViewInternal.onDialog"; | 24 const char kEventDialog[] = "webViewInternal.onDialog"; |
| 22 const char kEventExit[] = "webViewInternal.onExit"; | 25 const char kEventExit[] = "webViewInternal.onExit"; |
| 23 const char kEventFindReply[] = "webViewInternal.onFindReply"; | 26 const char kEventFindReply[] = "webViewInternal.onFindReply"; |
| 24 const char kEventFrameNameChanged[] = "webViewInternal.onFrameNameChanged"; | 27 const char kEventFrameNameChanged[] = "webViewInternal.onFrameNameChanged"; |
| 25 const char kEventLoadAbort[] = "webViewInternal.onLoadAbort"; | 28 const char kEventLoadAbort[] = "webViewInternal.onLoadAbort"; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 102 |
| 100 // Miscellaneous. | 103 // Miscellaneous. |
| 101 const char kMenuItemCommandId[] = "commandId"; | 104 const char kMenuItemCommandId[] = "commandId"; |
| 102 const char kMenuItemLabel[] = "label"; | 105 const char kMenuItemLabel[] = "label"; |
| 103 const char kPersistPrefix[] = "persist:"; | 106 const char kPersistPrefix[] = "persist:"; |
| 104 const char kStoragePartitionId[] = "storagePartitionId"; | 107 const char kStoragePartitionId[] = "storagePartitionId"; |
| 105 const unsigned int kMaxOutstandingPermissionRequests = 1024; | 108 const unsigned int kMaxOutstandingPermissionRequests = 1024; |
| 106 const int kInvalidPermissionRequestID = 0; | 109 const int kInvalidPermissionRequestID = 0; |
| 107 | 110 |
| 108 } // namespace webview | 111 } // namespace webview |
| OLD | NEW |