| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include "chrome/browser/extensions/extension_service.h" | 35 #include "chrome/browser/extensions/extension_service.h" |
| 36 #include "chrome/browser/guest_view/web_view/web_view_guest.h" | 36 #include "chrome/browser/guest_view/web_view/web_view_guest.h" |
| 37 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" | 37 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" |
| 38 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 38 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
| 39 #include "chrome/browser/profiles/profile.h" | 39 #include "chrome/browser/profiles/profile.h" |
| 40 #include "chrome/browser/profiles/profile_io_data.h" | 40 #include "chrome/browser/profiles/profile_io_data.h" |
| 41 #include "chrome/browser/renderer_context_menu/context_menu_content_type_factory
.h" | 41 #include "chrome/browser/renderer_context_menu/context_menu_content_type_factory
.h" |
| 42 #include "chrome/browser/renderer_context_menu/spellchecker_submenu_observer.h" | 42 #include "chrome/browser/renderer_context_menu/spellchecker_submenu_observer.h" |
| 43 #include "chrome/browser/renderer_context_menu/spelling_menu_observer.h" | 43 #include "chrome/browser/renderer_context_menu/spelling_menu_observer.h" |
| 44 #include "chrome/browser/search/search.h" | 44 #include "chrome/browser/search/search.h" |
| 45 #include "chrome/browser/search_engines/template_url_service.h" | |
| 46 #include "chrome/browser/search_engines/template_url_service_factory.h" | 45 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 47 #include "chrome/browser/spellchecker/spellcheck_host_metrics.h" | 46 #include "chrome/browser/spellchecker/spellcheck_host_metrics.h" |
| 48 #include "chrome/browser/spellchecker/spellcheck_service.h" | 47 #include "chrome/browser/spellchecker/spellcheck_service.h" |
| 49 #include "chrome/browser/tab_contents/retargeting_details.h" | 48 #include "chrome/browser/tab_contents/retargeting_details.h" |
| 50 #include "chrome/browser/translate/chrome_translate_client.h" | 49 #include "chrome/browser/translate/chrome_translate_client.h" |
| 51 #include "chrome/browser/translate/translate_service.h" | 50 #include "chrome/browser/translate/translate_service.h" |
| 52 #include "chrome/browser/ui/browser.h" | 51 #include "chrome/browser/ui/browser.h" |
| 53 #include "chrome/browser/ui/browser_commands.h" | 52 #include "chrome/browser/ui/browser_commands.h" |
| 54 #include "chrome/browser/ui/browser_finder.h" | 53 #include "chrome/browser/ui/browser_finder.h" |
| 55 #include "chrome/browser/ui/chrome_pages.h" | 54 #include "chrome/browser/ui/chrome_pages.h" |
| 56 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h" | 55 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h" |
| 57 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" | 56 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" |
| 58 #include "chrome/common/chrome_constants.h" | 57 #include "chrome/common/chrome_constants.h" |
| 59 #include "chrome/common/chrome_switches.h" | 58 #include "chrome/common/chrome_switches.h" |
| 60 #include "chrome/common/content_restriction.h" | 59 #include "chrome/common/content_restriction.h" |
| 61 #include "chrome/common/net/url_util.h" | 60 #include "chrome/common/net/url_util.h" |
| 62 #include "chrome/common/pref_names.h" | 61 #include "chrome/common/pref_names.h" |
| 63 #include "chrome/common/render_messages.h" | 62 #include "chrome/common/render_messages.h" |
| 64 #include "chrome/common/spellcheck_messages.h" | 63 #include "chrome/common/spellcheck_messages.h" |
| 65 #include "chrome/common/url_constants.h" | 64 #include "chrome/common/url_constants.h" |
| 66 #include "components/google/core/browser/google_util.h" | 65 #include "components/google/core/browser/google_util.h" |
| 67 #include "components/metrics/proto/omnibox_input_type.pb.h" | 66 #include "components/metrics/proto/omnibox_input_type.pb.h" |
| 68 #include "components/search_engines/template_url.h" | 67 #include "components/search_engines/template_url.h" |
| 68 #include "components/search_engines/template_url_service.h" |
| 69 #include "components/translate/core/browser/translate_download_manager.h" | 69 #include "components/translate/core/browser/translate_download_manager.h" |
| 70 #include "components/translate/core/browser/translate_manager.h" | 70 #include "components/translate/core/browser/translate_manager.h" |
| 71 #include "components/translate/core/browser/translate_prefs.h" | 71 #include "components/translate/core/browser/translate_prefs.h" |
| 72 #include "content/public/browser/child_process_security_policy.h" | 72 #include "content/public/browser/child_process_security_policy.h" |
| 73 #include "content/public/browser/download_manager.h" | 73 #include "content/public/browser/download_manager.h" |
| 74 #include "content/public/browser/download_save_info.h" | 74 #include "content/public/browser/download_save_info.h" |
| 75 #include "content/public/browser/download_url_parameters.h" | 75 #include "content/public/browser/download_url_parameters.h" |
| 76 #include "content/public/browser/navigation_details.h" | 76 #include "content/public/browser/navigation_details.h" |
| 77 #include "content/public/browser/navigation_entry.h" | 77 #include "content/public/browser/navigation_entry.h" |
| 78 #include "content/public/browser/notification_service.h" | 78 #include "content/public/browser/notification_service.h" |
| (...skipping 1914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1993 source_web_contents_->GetRenderViewHost()-> | 1993 source_web_contents_->GetRenderViewHost()-> |
| 1994 ExecuteMediaPlayerActionAtLocation(location, action); | 1994 ExecuteMediaPlayerActionAtLocation(location, action); |
| 1995 } | 1995 } |
| 1996 | 1996 |
| 1997 void RenderViewContextMenu::PluginActionAt( | 1997 void RenderViewContextMenu::PluginActionAt( |
| 1998 const gfx::Point& location, | 1998 const gfx::Point& location, |
| 1999 const WebPluginAction& action) { | 1999 const WebPluginAction& action) { |
| 2000 source_web_contents_->GetRenderViewHost()-> | 2000 source_web_contents_->GetRenderViewHost()-> |
| 2001 ExecutePluginActionAtLocation(location, action); | 2001 ExecutePluginActionAtLocation(location, action); |
| 2002 } | 2002 } |
| OLD | NEW |