diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-27 21:23:48 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-27 21:23:48 +0000 |
commit | 04bf3ad5acb81f9e932449dabd19708826774898 (patch) | |
tree | 956fda2d966a3f45ade61e61dbf1cf7ed65b0f63 /webkit/glue/context_menu.h | |
parent | 8708aa43fa34e36056f06d970dc7f1a5ebc48a87 (diff) | |
download | chromium_src-04bf3ad5acb81f9e932449dabd19708826774898.zip chromium_src-04bf3ad5acb81f9e932449dabd19708826774898.tar.gz chromium_src-04bf3ad5acb81f9e932449dabd19708826774898.tar.bz2 |
FBTF: Move code from headers into cc files.
BUG=none
TEST=compiles
Review URL: http://codereview.chromium.org/3219002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57732 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/context_menu.h')
-rw-r--r-- | webkit/glue/context_menu.h | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/webkit/glue/context_menu.h b/webkit/glue/context_menu.h index 764fb9d..b681a38 100644 --- a/webkit/glue/context_menu.h +++ b/webkit/glue/context_menu.h @@ -96,34 +96,9 @@ struct ContextMenuParams { std::vector<WebMenuItem> custom_items; - ContextMenuParams() {} - - ContextMenuParams(const WebKit::WebContextMenuData& data) - : media_type(data.mediaType), - x(data.mousePosition.x), - y(data.mousePosition.y), - link_url(data.linkURL), - unfiltered_link_url(data.linkURL), - src_url(data.srcURL), - is_image_blocked(data.isImageBlocked), - page_url(data.pageURL), - frame_url(data.frameURL), - media_flags(data.mediaFlags), - selection_text(UTF16ToWideHack(data.selectedText)), - misspelled_word(data.misspelledWord), - spellcheck_enabled(data.isSpellCheckingEnabled), - is_editable(data.isEditable), -#if defined(OS_MACOSX) - writing_direction_default(data.writingDirectionDefault), - writing_direction_left_to_right(data.writingDirectionLeftToRight), - writing_direction_right_to_left(data.writingDirectionRightToLeft), -#endif // OS_MACOSX - edit_flags(data.editFlags), - security_info(data.securityInfo), - frame_charset(data.frameEncoding.utf8()) { - for (size_t i = 0; i < data.customItems.size(); ++i) - custom_items.push_back(WebMenuItem(data.customItems[i])); - } + ContextMenuParams(); + ContextMenuParams(const WebKit::WebContextMenuData& data); + ~ContextMenuParams(); }; #endif // WEBKIT_GLUE_CONTEXT_MENU_H_ |