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

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

Issue 1128933011: Start passing Title text with the context menu data. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Switch to using Title attribute first Created 5 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/ContextMenuClientImpl.cpp ('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 /* 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 MediaCanPrint = 0x100, 112 MediaCanPrint = 0x100,
113 MediaCanRotate = 0x200, 113 MediaCanRotate = 0x200,
114 }; 114 };
115 115
116 // Extra attributes describing media elements. 116 // Extra attributes describing media elements.
117 int mediaFlags; 117 int mediaFlags;
118 118
119 // The raw text of the selection in context. 119 // The raw text of the selection in context.
120 WebString selectedText; 120 WebString selectedText;
121 121
122 // Title attribute or alt attribute (if title is not available) of the selec tion in context.
123 WebString titleText;
124
122 // Whether spell checking is enabled. 125 // Whether spell checking is enabled.
123 bool isSpellCheckingEnabled; 126 bool isSpellCheckingEnabled;
124 127
125 // Suggested filename for saving file. 128 // Suggested filename for saving file.
126 WebString suggestedFilename; 129 WebString suggestedFilename;
127 130
128 // The editable (possibily) misspelled word. 131 // The editable (possibily) misspelled word.
129 WebString misspelledWord; 132 WebString misspelledWord;
130 133
131 // The identifier of the misspelling. 134 // The identifier of the misspelling.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 , isEditable(false) 189 , isEditable(false)
187 , writingDirectionDefault(CheckableMenuItemDisabled) 190 , writingDirectionDefault(CheckableMenuItemDisabled)
188 , writingDirectionLeftToRight(CheckableMenuItemEnabled) 191 , writingDirectionLeftToRight(CheckableMenuItemEnabled)
189 , writingDirectionRightToLeft(CheckableMenuItemEnabled) 192 , writingDirectionRightToLeft(CheckableMenuItemEnabled)
190 , editFlags(0) { } 193 , editFlags(0) { }
191 }; 194 };
192 195
193 } // namespace blink 196 } // namespace blink
194 197
195 #endif 198 #endif
OLDNEW
« no previous file with comments | « Source/web/ContextMenuClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698