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

Side by Side Diff: content/public/common/context_menu_params.h

Issue 1126203011: Start displaying title text for HTML elements without links. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 | « content/common/frame_messages.h ('k') | content/renderer/context_menu_params_builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_
6 #define CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ 6 #define CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // This is the page state of the frame on which the context menu was invoked. 98 // This is the page state of the frame on which the context menu was invoked.
99 PageState frame_page_state; 99 PageState frame_page_state;
100 100
101 // These are the parameters for the media element that the context menu 101 // These are the parameters for the media element that the context menu
102 // was invoked on. 102 // was invoked on.
103 int media_flags; 103 int media_flags;
104 104
105 // This is the text of the selection that the context menu was invoked on. 105 // This is the text of the selection that the context menu was invoked on.
106 base::string16 selection_text; 106 base::string16 selection_text;
107 107
108 // This is the title or alt (if title not available) text of the selection
109 // that the context menu was invoked on.
110 base::string16 title_text;
111
108 // This is the suggested filename to be used when saving file through "Save 112 // This is the suggested filename to be used when saving file through "Save
109 // Link As" option of context menu. 113 // Link As" option of context menu.
110 base::string16 suggested_filename; 114 base::string16 suggested_filename;
111 115
112 // The misspelled word under the cursor, if any. Used to generate the 116 // The misspelled word under the cursor, if any. Used to generate the
113 // |dictionary_suggestions| list. 117 // |dictionary_suggestions| list.
114 base::string16 misspelled_word; 118 base::string16 misspelled_word;
115 119
116 // The identifier of the misspelling under the cursor, if any. 120 // The identifier of the misspelling under the cursor, if any.
117 uint32 misspelling_hash; 121 uint32 misspelling_hash;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // Points representing the coordinates in the document space of the start and 163 // Points representing the coordinates in the document space of the start and
160 // end of the selection, if there is one. 164 // end of the selection, if there is one.
161 gfx::Point selection_start; 165 gfx::Point selection_start;
162 gfx::Point selection_end; 166 gfx::Point selection_end;
163 #endif 167 #endif
164 }; 168 };
165 169
166 } // namespace content 170 } // namespace content
167 171
168 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ 172 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/context_menu_params_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698