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

Side by Side Diff: content/renderer/context_menu_params_builder.cc

Issue 73963004: [Chromium] Adding Writing direction to the context menu for linux gtk (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changes under TOOLKIT_GTK Created 7 years, 1 month 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
« no previous file with comments | « content/public/common/context_menu_params.cc ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "content/renderer/context_menu_params_builder.h" 5 #include "content/renderer/context_menu_params_builder.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/common/ssl_status_serialization.h" 8 #include "content/common/ssl_status_serialization.h"
9 #include "content/public/common/context_menu_params.h" 9 #include "content/public/common/context_menu_params.h"
10 #include "content/public/renderer/history_item_serialization.h" 10 #include "content/public/renderer/history_item_serialization.h"
(...skipping 17 matching lines...) Expand all
28 params.page_url = data.pageURL; 28 params.page_url = data.pageURL;
29 params.keyword_url = data.keywordURL; 29 params.keyword_url = data.keywordURL;
30 params.frame_url = data.frameURL; 30 params.frame_url = data.frameURL;
31 params.media_flags = data.mediaFlags; 31 params.media_flags = data.mediaFlags;
32 params.selection_text = data.selectedText; 32 params.selection_text = data.selectedText;
33 params.misspelled_word = data.misspelledWord; 33 params.misspelled_word = data.misspelledWord;
34 params.misspelling_hash = data.misspellingHash; 34 params.misspelling_hash = data.misspellingHash;
35 params.speech_input_enabled = data.isSpeechInputEnabled; 35 params.speech_input_enabled = data.isSpeechInputEnabled;
36 params.spellcheck_enabled = data.isSpellCheckingEnabled; 36 params.spellcheck_enabled = data.isSpellCheckingEnabled;
37 params.is_editable = data.isEditable; 37 params.is_editable = data.isEditable;
38 #if defined(OS_MACOSX) 38 #if defined(OS_MACOSX) || defined(TOOLKIT_GTK)
39 params.writing_direction_default = data.writingDirectionDefault; 39 params.writing_direction_default = data.writingDirectionDefault;
40 params.writing_direction_left_to_right = data.writingDirectionLeftToRight; 40 params.writing_direction_left_to_right = data.writingDirectionLeftToRight;
41 params.writing_direction_right_to_left = data.writingDirectionRightToLeft; 41 params.writing_direction_right_to_left = data.writingDirectionRightToLeft;
42 #endif // OS_MACOSX 42 #endif // OS_MACOSX || defined(TOOLKIT_GTK)
43 params.edit_flags = data.editFlags; 43 params.edit_flags = data.editFlags;
44 params.frame_charset = data.frameEncoding.utf8(); 44 params.frame_charset = data.frameEncoding.utf8();
45 params.referrer_policy = data.referrerPolicy; 45 params.referrer_policy = data.referrerPolicy;
46 46
47 for (size_t i = 0; i < data.dictionarySuggestions.size(); ++i) 47 for (size_t i = 0; i < data.dictionarySuggestions.size(); ++i)
48 params.dictionary_suggestions.push_back(data.dictionarySuggestions[i]); 48 params.dictionary_suggestions.push_back(data.dictionarySuggestions[i]);
49 49
50 params.custom_context.is_pepper_menu = false; 50 params.custom_context.is_pepper_menu = false;
51 for (size_t i = 0; i < data.customItems.size(); ++i) 51 for (size_t i = 0; i < data.customItems.size(); ++i)
52 params.custom_items.push_back(MenuItemBuilder::Build(data.customItems[i])); 52 params.custom_items.push_back(MenuItemBuilder::Build(data.customItems[i]));
(...skipping 26 matching lines...) Expand all
79 &params.security_info.cert_id, 79 &params.security_info.cert_id,
80 &params.security_info.cert_status, 80 &params.security_info.cert_status,
81 &params.security_info.security_bits, 81 &params.security_info.security_bits,
82 &params.security_info.connection_status); 82 &params.security_info.connection_status);
83 } 83 }
84 84
85 return params; 85 return params;
86 } 86 }
87 87
88 } // namespace content 88 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/context_menu_params.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698