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

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

Issue 1499423004: Remove kint32max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kint9
Patch Set: rebase Created 5 years 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/mac/font_loader.mm ('k') | content/public/common/context_menu_params.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 <stdint.h>
9
8 #include <map> 10 #include <map>
9 #include <string> 11 #include <string>
10 #include <vector> 12 #include <vector>
11 13
12 #include "base/basictypes.h" 14 #include "base/basictypes.h"
13 #include "base/strings/string16.h" 15 #include "base/strings/string16.h"
14 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
15 #include "content/public/common/menu_item.h" 17 #include "content/public/common/menu_item.h"
16 #include "content/public/common/page_state.h" 18 #include "content/public/common/page_state.h"
17 #include "content/public/common/ssl_status.h" 19 #include "content/public/common/ssl_status.h"
18 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" 20 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
19 #include "third_party/WebKit/public/web/WebContextMenuData.h" 21 #include "third_party/WebKit/public/web/WebContextMenuData.h"
20 #include "ui/base/ui_base_types.h" 22 #include "ui/base/ui_base_types.h"
21 #include "url/gurl.h" 23 #include "url/gurl.h"
22 24
23 #if defined(OS_ANDROID) 25 #if defined(OS_ANDROID)
24 #include "ui/gfx/geometry/point.h" 26 #include "ui/gfx/geometry/point.h"
25 #endif 27 #endif
26 28
27 namespace content { 29 namespace content {
28 30
29 struct CONTENT_EXPORT CustomContextMenuContext { 31 struct CONTENT_EXPORT CustomContextMenuContext {
30 static const int32 kCurrentRenderWidget; 32 static const int32_t kCurrentRenderWidget;
31 33
32 CustomContextMenuContext(); 34 CustomContextMenuContext();
33 35
34 bool is_pepper_menu; 36 bool is_pepper_menu;
35 int request_id; 37 int request_id;
36 // The routing ID of the render widget on which the context menu is shown. 38 // The routing ID of the render widget on which the context menu is shown.
37 // It could also be |kCurrentRenderWidget|, which means the render widget that 39 // It could also be |kCurrentRenderWidget|, which means the render widget that
38 // the corresponding ViewHostMsg_ContextMenu is sent to. 40 // the corresponding ViewHostMsg_ContextMenu is sent to.
39 int32 render_widget_id; 41 int32_t render_widget_id;
40 42
41 // If the context menu was created for a link, and we navigated to that url, 43 // If the context menu was created for a link, and we navigated to that url,
42 // this will contain the url that was navigated. This field may not be set 44 // this will contain the url that was navigated. This field may not be set
43 // if, for example, we are transitioning to an incognito window, since we 45 // if, for example, we are transitioning to an incognito window, since we
44 // want to sever any connection to the old renderer. 46 // want to sever any connection to the old renderer.
45 GURL link_followed; 47 GURL link_followed;
46 }; 48 };
47 49
48 // FIXME(beng): This would be more useful in the future and more efficient 50 // FIXME(beng): This would be more useful in the future and more efficient
49 // if the parameters here weren't so literally mapped to what 51 // if the parameters here weren't so literally mapped to what
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 113
112 // This is the suggested filename to be used when saving file through "Save 114 // This is the suggested filename to be used when saving file through "Save
113 // Link As" option of context menu. 115 // Link As" option of context menu.
114 base::string16 suggested_filename; 116 base::string16 suggested_filename;
115 117
116 // The misspelled word under the cursor, if any. Used to generate the 118 // The misspelled word under the cursor, if any. Used to generate the
117 // |dictionary_suggestions| list. 119 // |dictionary_suggestions| list.
118 base::string16 misspelled_word; 120 base::string16 misspelled_word;
119 121
120 // The identifier of the misspelling under the cursor, if any. 122 // The identifier of the misspelling under the cursor, if any.
121 uint32 misspelling_hash; 123 uint32_t misspelling_hash;
122 124
123 // Suggested replacements for a misspelled word under the cursor. 125 // Suggested replacements for a misspelled word under the cursor.
124 // This vector gets populated in the render process host 126 // This vector gets populated in the render process host
125 // by intercepting ViewHostMsg_ContextMenu in ResourceMessageFilter 127 // by intercepting ViewHostMsg_ContextMenu in ResourceMessageFilter
126 // and populating dictionary_suggestions if the type is EDITABLE 128 // and populating dictionary_suggestions if the type is EDITABLE
127 // and the misspelled_word is not empty. 129 // and the misspelled_word is not empty.
128 std::vector<base::string16> dictionary_suggestions; 130 std::vector<base::string16> dictionary_suggestions;
129 131
130 // If editable, flag for whether spell check is enabled or not. 132 // If editable, flag for whether spell check is enabled or not.
131 bool spellcheck_enabled; 133 bool spellcheck_enabled;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 gfx::Point selection_end; 168 gfx::Point selection_end;
167 #endif 169 #endif
168 170
169 // If this node is an input field, the type of that field. 171 // If this node is an input field, the type of that field.
170 blink::WebContextMenuData::InputFieldType input_field_type; 172 blink::WebContextMenuData::InputFieldType input_field_type;
171 }; 173 };
172 174
173 } // namespace content 175 } // namespace content
174 176
175 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ 177 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_
OLDNEW
« no previous file with comments | « content/common/mac/font_loader.mm ('k') | content/public/common/context_menu_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698