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

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

Issue 14985014: Introduce content::PageState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments to the top of page_state.h Created 7 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 | Annotate | Revision Log
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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "content/public/common/page_state.h"
14 #include "content/public/common/ssl_status.h" 15 #include "content/public/common/ssl_status.h"
15 #include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h " 16 #include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h "
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h" 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h"
17 #include "webkit/glue/webmenuitem.h" 18 #include "webkit/glue/webmenuitem.h"
18 19
19 #if defined(OS_ANDROID) 20 #if defined(OS_ANDROID)
20 #include "ui/gfx/point.h" 21 #include "ui/gfx/point.h"
21 #endif 22 #endif
22 23
23 namespace content { 24 namespace content {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // This is the absolute keyword search URL including the %s search tag when 81 // This is the absolute keyword search URL including the %s search tag when
81 // the "Add as search engine..." option is clicked (left empty if not used). 82 // the "Add as search engine..." option is clicked (left empty if not used).
82 GURL keyword_url; 83 GURL keyword_url;
83 84
84 // This is the URL of the subframe that the context menu was invoked on. 85 // This is the URL of the subframe that the context menu was invoked on.
85 GURL frame_url; 86 GURL frame_url;
86 87
87 // This is the ID of the subframe that the context menu was invoked on. 88 // This is the ID of the subframe that the context menu was invoked on.
88 int64 frame_id; 89 int64 frame_id;
89 90
90 // This is the history item state of the subframe that the context menu was 91 // This is the page state of the frame on which the context menu was invoked.
91 // invoked on. 92 PageState frame_page_state;
92 std::string frame_content_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 string16 selection_text; 99 string16 selection_text;
100 100
101 // The misspelled word under the cursor, if any. Used to generate the 101 // The misspelled word under the cursor, if any. Used to generate the
102 // |dictionary_suggestions| list. 102 // |dictionary_suggestions| list.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // end of the selection, if there is one. 150 // end of the selection, if there is one.
151 gfx::Point selection_start; 151 gfx::Point selection_start;
152 gfx::Point selection_end; 152 gfx::Point selection_end;
153 #endif 153 #endif
154 154
155 }; 155 };
156 156
157 } // namespace content 157 } // namespace content
158 158
159 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ 159 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698