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

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: 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
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // This is the page state of the frame on which the context menu was invoked. 97 // This is the page state of the frame on which the context menu was invoked.
98 PageState frame_page_state; 98 PageState frame_page_state;
99 99
100 // These are the parameters for the media element that the context menu 100 // These are the parameters for the media element that the context menu
101 // was invoked on. 101 // was invoked on.
102 int media_flags; 102 int media_flags;
103 103
104 // This is the text of the selection that the context menu was invoked on. 104 // This is the text of the selection that the context menu was invoked on.
105 base::string16 selection_text; 105 base::string16 selection_text;
106 106
107 // This is the title or alt (it title not available) text of the selection
Ted C 2015/05/15 23:24:55 "if title"
108 // that the context menu was invoked on.
109 base::string16 title_text;
110
107 // This is the suggested filename to be used when saving file through "Save 111 // This is the suggested filename to be used when saving file through "Save
108 // Link As" option of context menu. 112 // Link As" option of context menu.
109 base::string16 suggested_filename; 113 base::string16 suggested_filename;
110 114
111 // The misspelled word under the cursor, if any. Used to generate the 115 // The misspelled word under the cursor, if any. Used to generate the
112 // |dictionary_suggestions| list. 116 // |dictionary_suggestions| list.
113 base::string16 misspelled_word; 117 base::string16 misspelled_word;
114 118
115 // The identifier of the misspelling under the cursor, if any. 119 // The identifier of the misspelling under the cursor, if any.
116 uint32 misspelling_hash; 120 uint32 misspelling_hash;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // Points representing the coordinates in the document space of the start and 159 // Points representing the coordinates in the document space of the start and
156 // end of the selection, if there is one. 160 // end of the selection, if there is one.
157 gfx::Point selection_start; 161 gfx::Point selection_start;
158 gfx::Point selection_end; 162 gfx::Point selection_end;
159 #endif 163 #endif
160 }; 164 };
161 165
162 } // namespace content 166 } // namespace content
163 167
164 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ 168 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698