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

Side by Side Diff: chrome/browser/renderer_context_menu/render_view_context_menu.cc

Issue 1699213003: [spellcheck] Reorder spellcheck options in context menu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@spell-menu
Patch Set: Created 4 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
« no previous file with comments | « no previous file | chrome/browser/renderer_context_menu/spelling_options_submenu_observer.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/browser/renderer_context_menu/render_view_context_menu.h" 5 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <set> 10 #include <set>
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 722
723 if (content_type_->SupportsGroup(ContextMenuContentType::ITEM_GROUP_PRINT) && 723 if (content_type_->SupportsGroup(ContextMenuContentType::ITEM_GROUP_PRINT) &&
724 !content_type_->SupportsGroup( 724 !content_type_->SupportsGroup(
725 ContextMenuContentType::ITEM_GROUP_MEDIA_IMAGE)) { 725 ContextMenuContentType::ITEM_GROUP_MEDIA_IMAGE)) {
726 AppendPrintItem(); 726 AppendPrintItem();
727 } 727 }
728 728
729 if (content_type_->SupportsGroup( 729 if (content_type_->SupportsGroup(
730 ContextMenuContentType::ITEM_GROUP_EDITABLE)) { 730 ContextMenuContentType::ITEM_GROUP_EDITABLE)) {
731 menu_model_.AddSeparator(ui::NORMAL_SEPARATOR); 731 menu_model_.AddSeparator(ui::NORMAL_SEPARATOR);
732 AppendLanguageSettings();
732 AppendPlatformEditableItems(); 733 AppendPlatformEditableItems();
733 AppendLanguageSettings();
734 } 734 }
735 735
736 if (content_type_->SupportsGroup( 736 if (content_type_->SupportsGroup(
737 ContextMenuContentType::ITEM_GROUP_MEDIA_PLUGIN)) { 737 ContextMenuContentType::ITEM_GROUP_MEDIA_PLUGIN)) {
738 AppendRotationItems(); 738 AppendRotationItems();
739 } 739 }
740 740
741 if (content_type_->SupportsGroup( 741 if (content_type_->SupportsGroup(
742 ContextMenuContentType::ITEM_GROUP_ALL_EXTENSION)) { 742 ContextMenuContentType::ITEM_GROUP_ALL_EXTENSION)) {
743 DCHECK(!content_type_->SupportsGroup( 743 DCHECK(!content_type_->SupportsGroup(
(...skipping 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after
2211 source_web_contents_->GetRenderViewHost()-> 2211 source_web_contents_->GetRenderViewHost()->
2212 ExecuteMediaPlayerActionAtLocation(location, action); 2212 ExecuteMediaPlayerActionAtLocation(location, action);
2213 } 2213 }
2214 2214
2215 void RenderViewContextMenu::PluginActionAt( 2215 void RenderViewContextMenu::PluginActionAt(
2216 const gfx::Point& location, 2216 const gfx::Point& location,
2217 const WebPluginAction& action) { 2217 const WebPluginAction& action) {
2218 source_web_contents_->GetRenderViewHost()-> 2218 source_web_contents_->GetRenderViewHost()->
2219 ExecutePluginActionAtLocation(location, action); 2219 ExecutePluginActionAtLocation(location, action);
2220 } 2220 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_context_menu/spelling_options_submenu_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698