| 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 // A canvas node is selected. |
| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 , isEditable(false) | 176 , isEditable(false) |
| 175 , writingDirectionDefault(CheckableMenuItemDisabled) | 177 , writingDirectionDefault(CheckableMenuItemDisabled) |
| 176 , writingDirectionLeftToRight(CheckableMenuItemEnabled) | 178 , writingDirectionLeftToRight(CheckableMenuItemEnabled) |
| 177 , writingDirectionRightToLeft(CheckableMenuItemEnabled) | 179 , writingDirectionRightToLeft(CheckableMenuItemEnabled) |
| 178 , editFlags(0) { } | 180 , editFlags(0) { } |
| 179 }; | 181 }; |
| 180 | 182 |
| 181 } // namespace blink | 183 } // namespace blink |
| 182 | 184 |
| 183 #endif | 185 #endif |
| OLD | NEW |