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

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

Issue 1105263004: "Load image" context menu item to reload a LoFi image. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename ReloadOriginalImage to ShowOriginalImage and Comments 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 <map>
8 #include <string> 9 #include <string>
9 #include <vector> 10 #include <vector>
10 11
11 #include "base/basictypes.h" 12 #include "base/basictypes.h"
12 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
13 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
14 #include "content/public/common/menu_item.h" 15 #include "content/public/common/menu_item.h"
15 #include "content/public/common/page_state.h" 16 #include "content/public/common/page_state.h"
16 #include "content/public/common/ssl_status.h" 17 #include "content/public/common/ssl_status.h"
17 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" 18 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 std::string frame_charset; 145 std::string frame_charset;
145 146
146 // The referrer policy of the frame on which the menu is invoked. 147 // The referrer policy of the frame on which the menu is invoked.
147 blink::WebReferrerPolicy referrer_policy; 148 blink::WebReferrerPolicy referrer_policy;
148 149
149 CustomContextMenuContext custom_context; 150 CustomContextMenuContext custom_context;
150 std::vector<MenuItem> custom_items; 151 std::vector<MenuItem> custom_items;
151 152
152 ui::MenuSourceType source_type; 153 ui::MenuSourceType source_type;
153 154
155 // Extra properties for the context menu.
156 std::map<std::string, std::string> properties;
157
154 #if defined(OS_ANDROID) 158 #if defined(OS_ANDROID)
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