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

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

Issue 6253017: Pepper/Flapper: First pass at context menu implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make brettw happier Created 9 years, 10 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
« no previous file with comments | « webkit/glue/context_menu.h ('k') | webkit/glue/webkit_glue.gypi » ('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) 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 namespace webkit_glue {
8
9 CustomContextMenuContext::CustomContextMenuContext()
10 : is_pepper_menu(false),
11 request_id(0) {
12 }
13
14 } // namespace webkit_glue
15
7 ContextMenuParams::ContextMenuParams() { 16 ContextMenuParams::ContextMenuParams() {
8 } 17 }
9 18
10 ContextMenuParams::ContextMenuParams(const WebKit::WebContextMenuData& data) 19 ContextMenuParams::ContextMenuParams(const WebKit::WebContextMenuData& data)
11 : media_type(data.mediaType), 20 : media_type(data.mediaType),
12 x(data.mousePosition.x), 21 x(data.mousePosition.x),
13 y(data.mousePosition.y), 22 y(data.mousePosition.y),
14 link_url(data.linkURL), 23 link_url(data.linkURL),
15 unfiltered_link_url(data.linkURL), 24 unfiltered_link_url(data.linkURL),
16 src_url(data.srcURL), 25 src_url(data.srcURL),
17 is_image_blocked(data.isImageBlocked), 26 is_image_blocked(data.isImageBlocked),
18 page_url(data.pageURL), 27 page_url(data.pageURL),
19 frame_url(data.frameURL), 28 frame_url(data.frameURL),
20 media_flags(data.mediaFlags), 29 media_flags(data.mediaFlags),
21 selection_text(data.selectedText), 30 selection_text(data.selectedText),
22 misspelled_word(data.misspelledWord), 31 misspelled_word(data.misspelledWord),
23 spellcheck_enabled(data.isSpellCheckingEnabled), 32 spellcheck_enabled(data.isSpellCheckingEnabled),
24 is_editable(data.isEditable), 33 is_editable(data.isEditable),
25 #if defined(OS_MACOSX) 34 #if defined(OS_MACOSX)
26 writing_direction_default(data.writingDirectionDefault), 35 writing_direction_default(data.writingDirectionDefault),
27 writing_direction_left_to_right(data.writingDirectionLeftToRight), 36 writing_direction_left_to_right(data.writingDirectionLeftToRight),
28 writing_direction_right_to_left(data.writingDirectionRightToLeft), 37 writing_direction_right_to_left(data.writingDirectionRightToLeft),
29 #endif // OS_MACOSX 38 #endif // OS_MACOSX
30 edit_flags(data.editFlags), 39 edit_flags(data.editFlags),
31 security_info(data.securityInfo), 40 security_info(data.securityInfo),
32 frame_charset(data.frameEncoding.utf8()) { 41 frame_charset(data.frameEncoding.utf8()) {
42 custom_context.is_pepper_menu = false;
33 for (size_t i = 0; i < data.customItems.size(); ++i) 43 for (size_t i = 0; i < data.customItems.size(); ++i)
34 custom_items.push_back(WebMenuItem(data.customItems[i])); 44 custom_items.push_back(WebMenuItem(data.customItems[i]));
35 } 45 }
36 46
37 ContextMenuParams::~ContextMenuParams() { 47 ContextMenuParams::~ContextMenuParams() {
38 } 48 }
OLDNEW
« no previous file with comments | « webkit/glue/context_menu.h ('k') | webkit/glue/webkit_glue.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698