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

Side by Side Diff: webkit/glue/context_menu.cc

Issue 5712003: webkit: use string16 in ContextMenuParams (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: works Created 10 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/context_menu.h ('k') | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "webkit/glue/context_menu.h" 5 #include "webkit/glue/context_menu.h"
6 6
7 ContextMenuParams::ContextMenuParams() { 7 ContextMenuParams::ContextMenuParams() {
8 } 8 }
9 9
10 ContextMenuParams::ContextMenuParams(const WebKit::WebContextMenuData& data) 10 ContextMenuParams::ContextMenuParams(const WebKit::WebContextMenuData& data)
11 : media_type(data.mediaType), 11 : media_type(data.mediaType),
12 x(data.mousePosition.x), 12 x(data.mousePosition.x),
13 y(data.mousePosition.y), 13 y(data.mousePosition.y),
14 link_url(data.linkURL), 14 link_url(data.linkURL),
15 unfiltered_link_url(data.linkURL), 15 unfiltered_link_url(data.linkURL),
16 src_url(data.srcURL), 16 src_url(data.srcURL),
17 is_image_blocked(data.isImageBlocked), 17 is_image_blocked(data.isImageBlocked),
18 page_url(data.pageURL), 18 page_url(data.pageURL),
19 frame_url(data.frameURL), 19 frame_url(data.frameURL),
20 media_flags(data.mediaFlags), 20 media_flags(data.mediaFlags),
21 selection_text(UTF16ToWideHack(data.selectedText)), 21 selection_text(data.selectedText),
22 misspelled_word(data.misspelledWord), 22 misspelled_word(data.misspelledWord),
23 spellcheck_enabled(data.isSpellCheckingEnabled), 23 spellcheck_enabled(data.isSpellCheckingEnabled),
24 is_editable(data.isEditable), 24 is_editable(data.isEditable),
25 #if defined(OS_MACOSX) 25 #if defined(OS_MACOSX)
26 writing_direction_default(data.writingDirectionDefault), 26 writing_direction_default(data.writingDirectionDefault),
27 writing_direction_left_to_right(data.writingDirectionLeftToRight), 27 writing_direction_left_to_right(data.writingDirectionLeftToRight),
28 writing_direction_right_to_left(data.writingDirectionRightToLeft), 28 writing_direction_right_to_left(data.writingDirectionRightToLeft),
29 #endif // OS_MACOSX 29 #endif // OS_MACOSX
30 edit_flags(data.editFlags), 30 edit_flags(data.editFlags),
31 security_info(data.securityInfo), 31 security_info(data.securityInfo),
32 frame_charset(data.frameEncoding.utf8()) { 32 frame_charset(data.frameEncoding.utf8()) {
33 for (size_t i = 0; i < data.customItems.size(); ++i) 33 for (size_t i = 0; i < data.customItems.size(); ++i)
34 custom_items.push_back(WebMenuItem(data.customItems[i])); 34 custom_items.push_back(WebMenuItem(data.customItems[i]));
35 } 35 }
36 36
37 ContextMenuParams::~ContextMenuParams() { 37 ContextMenuParams::~ContextMenuParams() {
38 } 38 }
OLDNEW
« no previous file with comments | « webkit/glue/context_menu.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698