OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
48 struct WebContextMenuData { | 48 struct WebContextMenuData { |
49 enum MediaType { | 49 enum MediaType { |
50 // No special node is in context. | 50 // No special node is in context. |
51 MediaTypeNone, | 51 MediaTypeNone, |
52 // An image node is selected. | 52 // An image node is selected. |
53 MediaTypeImage, | 53 MediaTypeImage, |
54 // A video node is selected. | 54 // A video node is selected. |
55 MediaTypeVideo, | 55 MediaTypeVideo, |
56 // An audio node is selected. | 56 // An audio node is selected. |
57 MediaTypeAudio, | 57 MediaTypeAudio, |
58 // An canvas node is selected. | |
dglazkov
2014/05/06 17:27:20
"A canvas node"
| |
59 MediaTypeCanvas, | |
58 // A file node is selected. | 60 // A file node is selected. |
59 MediaTypeFile, | 61 MediaTypeFile, |
60 // A plugin node is selected. | 62 // A plugin node is selected. |
61 MediaTypePlugin, | 63 MediaTypePlugin, |
62 MediaTypeLast = MediaTypePlugin | 64 MediaTypeLast = MediaTypePlugin |
63 }; | 65 }; |
64 // The type of media the context menu is being invoked on. | 66 // The type of media the context menu is being invoked on. |
65 MediaType mediaType; | 67 MediaType mediaType; |
66 | 68 |
67 // The x and y position of the mouse pointer (relative to the webview). | 69 // The x and y position of the mouse pointer (relative to the webview). |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
178 , isEditable(false) | 180 , isEditable(false) |
179 , writingDirectionDefault(CheckableMenuItemDisabled) | 181 , writingDirectionDefault(CheckableMenuItemDisabled) |
180 , writingDirectionLeftToRight(CheckableMenuItemEnabled) | 182 , writingDirectionLeftToRight(CheckableMenuItemEnabled) |
181 , writingDirectionRightToLeft(CheckableMenuItemEnabled) | 183 , writingDirectionRightToLeft(CheckableMenuItemEnabled) |
182 , editFlags(0) { } | 184 , editFlags(0) { } |
183 }; | 185 }; |
184 | 186 |
185 } // namespace blink | 187 } // namespace blink |
186 | 188 |
187 #endif | 189 #endif |
OLD | NEW |