| OLD | NEW |
| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 #include "components/omnibox/browser/autocomplete_classifier.h" | 73 #include "components/omnibox/browser/autocomplete_classifier.h" |
| 74 #include "components/omnibox/browser/autocomplete_match.h" | 74 #include "components/omnibox/browser/autocomplete_match.h" |
| 75 #include "components/password_manager/core/common/experiments.h" | 75 #include "components/password_manager/core/common/experiments.h" |
| 76 #include "components/prefs/pref_member.h" | 76 #include "components/prefs/pref_member.h" |
| 77 #include "components/prefs/pref_service.h" | 77 #include "components/prefs/pref_service.h" |
| 78 #include "components/search_engines/template_url.h" | 78 #include "components/search_engines/template_url.h" |
| 79 #include "components/search_engines/template_url_service.h" | 79 #include "components/search_engines/template_url_service.h" |
| 80 #include "components/spellcheck/browser/pref_names.h" | 80 #include "components/spellcheck/browser/pref_names.h" |
| 81 #include "components/spellcheck/browser/spellcheck_host_metrics.h" | 81 #include "components/spellcheck/browser/spellcheck_host_metrics.h" |
| 82 #include "components/spellcheck/common/spellcheck_common.h" | 82 #include "components/spellcheck/common/spellcheck_common.h" |
| 83 #include "components/spellcheck/spellcheck_build_features.h" |
| 83 #include "components/translate/core/browser/translate_download_manager.h" | 84 #include "components/translate/core/browser/translate_download_manager.h" |
| 84 #include "components/translate/core/browser/translate_manager.h" | 85 #include "components/translate/core/browser/translate_manager.h" |
| 85 #include "components/translate/core/browser/translate_prefs.h" | 86 #include "components/translate/core/browser/translate_prefs.h" |
| 86 #include "components/url_formatter/url_formatter.h" | 87 #include "components/url_formatter/url_formatter.h" |
| 87 #include "components/user_prefs/user_prefs.h" | 88 #include "components/user_prefs/user_prefs.h" |
| 88 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 89 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
| 89 #include "content/public/browser/child_process_security_policy.h" | 90 #include "content/public/browser/child_process_security_policy.h" |
| 90 #include "content/public/browser/download_manager.h" | 91 #include "content/public/browser/download_manager.h" |
| 91 #include "content/public/browser/download_save_info.h" | 92 #include "content/public/browser/download_save_info.h" |
| 92 #include "content/public/browser/download_url_parameters.h" | 93 #include "content/public/browser/download_url_parameters.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 114 #include "ui/base/clipboard/clipboard.h" | 115 #include "ui/base/clipboard/clipboard.h" |
| 115 #include "ui/base/clipboard/scoped_clipboard_writer.h" | 116 #include "ui/base/clipboard/scoped_clipboard_writer.h" |
| 116 #include "ui/base/l10n/l10n_util.h" | 117 #include "ui/base/l10n/l10n_util.h" |
| 117 #include "ui/gfx/canvas.h" | 118 #include "ui/gfx/canvas.h" |
| 118 #include "ui/gfx/favicon_size.h" | 119 #include "ui/gfx/favicon_size.h" |
| 119 #include "ui/gfx/geometry/point.h" | 120 #include "ui/gfx/geometry/point.h" |
| 120 #include "ui/gfx/geometry/size.h" | 121 #include "ui/gfx/geometry/size.h" |
| 121 #include "ui/gfx/path.h" | 122 #include "ui/gfx/path.h" |
| 122 #include "ui/gfx/text_elider.h" | 123 #include "ui/gfx/text_elider.h" |
| 123 | 124 |
| 124 #if !defined(USE_BROWSER_SPELLCHECKER) | 125 #if !BUILDFLAG(USE_BROWSER_SPELLCHECKER) |
| 125 #include "chrome/browser/renderer_context_menu/spelling_options_submenu_observer
.h" | 126 #include "chrome/browser/renderer_context_menu/spelling_options_submenu_observer
.h" |
| 126 #endif | 127 #endif |
| 127 | 128 |
| 128 #if BUILDFLAG(ENABLE_EXTENSIONS) | 129 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 129 #include "chrome/browser/extensions/devtools_util.h" | 130 #include "chrome/browser/extensions/devtools_util.h" |
| 130 #include "chrome/browser/extensions/extension_service.h" | 131 #include "chrome/browser/extensions/extension_service.h" |
| 131 #include "extensions/browser/extension_host.h" | 132 #include "extensions/browser/extension_host.h" |
| 132 #include "extensions/browser/extension_system.h" | 133 #include "extensions/browser/extension_system.h" |
| 133 #include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_gues
t.h" | 134 #include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_gues
t.h" |
| 134 #include "extensions/browser/guest_view/web_view/web_view_guest.h" | 135 #include "extensions/browser/guest_view/web_view/web_view_guest.h" |
| (...skipping 2365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2500 void RenderViewContextMenu::PluginActionAt( | 2501 void RenderViewContextMenu::PluginActionAt( |
| 2501 const gfx::Point& location, | 2502 const gfx::Point& location, |
| 2502 const WebPluginAction& action) { | 2503 const WebPluginAction& action) { |
| 2503 source_web_contents_->GetRenderViewHost()-> | 2504 source_web_contents_->GetRenderViewHost()-> |
| 2504 ExecutePluginActionAtLocation(location, action); | 2505 ExecutePluginActionAtLocation(location, action); |
| 2505 } | 2506 } |
| 2506 | 2507 |
| 2507 Browser* RenderViewContextMenu::GetBrowser() const { | 2508 Browser* RenderViewContextMenu::GetBrowser() const { |
| 2508 return chrome::FindBrowserWithWebContents(embedder_web_contents_); | 2509 return chrome::FindBrowserWithWebContents(embedder_web_contents_); |
| 2509 } | 2510 } |
| OLD | NEW |