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

Side by Side Diff: public/web/WebContextMenuData.h

Issue 255563004: Implement "Save image as" for canvas (blink side). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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 | « Source/web/WebViewImpl.cpp ('k') | public/web/WebNavigationPolicy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | public/web/WebNavigationPolicy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698