OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |