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

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

Issue 339153002: Use suggested filename for "Save Link As" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review feedback Created 6 years, 6 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // This is the page state of the frame on which the context menu was invoked. 91 // This is the page state of the frame on which the context menu was invoked.
92 PageState frame_page_state; 92 PageState frame_page_state;
93 93
94 // These are the parameters for the media element that the context menu 94 // These are the parameters for the media element that the context menu
95 // was invoked on. 95 // was invoked on.
96 int media_flags; 96 int media_flags;
97 97
98 // This is the text of the selection that the context menu was invoked on. 98 // This is the text of the selection that the context menu was invoked on.
99 base::string16 selection_text; 99 base::string16 selection_text;
100 100
101 // This is the suggested filename to be used when saving file through "Save
102 // Link As" option of context menu.
103 base::string16 suggested_filename;
104
101 // The misspelled word under the cursor, if any. Used to generate the 105 // The misspelled word under the cursor, if any. Used to generate the
102 // |dictionary_suggestions| list. 106 // |dictionary_suggestions| list.
103 base::string16 misspelled_word; 107 base::string16 misspelled_word;
104 108
105 // The identifier of the misspelling under the cursor, if any. 109 // The identifier of the misspelling under the cursor, if any.
106 uint32 misspelling_hash; 110 uint32 misspelling_hash;
107 111
108 // Suggested replacements for a misspelled word under the cursor. 112 // Suggested replacements for a misspelled word under the cursor.
109 // This vector gets populated in the render process host 113 // This vector gets populated in the render process host
110 // by intercepting ViewHostMsg_ContextMenu in ResourceMessageFilter 114 // by intercepting ViewHostMsg_ContextMenu in ResourceMessageFilter
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // Points representing the coordinates in the document space of the start and 149 // Points representing the coordinates in the document space of the start and
146 // end of the selection, if there is one. 150 // end of the selection, if there is one.
147 gfx::Point selection_start; 151 gfx::Point selection_start;
148 gfx::Point selection_end; 152 gfx::Point selection_end;
149 #endif 153 #endif
150 }; 154 };
151 155
152 } // namespace content 156 } // namespace content
153 157
154 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ 158 #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