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

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

Issue 224723025: Componentize TranslateManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 6 years, 8 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
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 <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "chrome/browser/renderer_context_menu/spellchecker_submenu_observer.h" 44 #include "chrome/browser/renderer_context_menu/spellchecker_submenu_observer.h"
45 #include "chrome/browser/renderer_context_menu/spelling_menu_observer.h" 45 #include "chrome/browser/renderer_context_menu/spelling_menu_observer.h"
46 #include "chrome/browser/search/search.h" 46 #include "chrome/browser/search/search.h"
47 #include "chrome/browser/search_engines/search_terms_data.h" 47 #include "chrome/browser/search_engines/search_terms_data.h"
48 #include "chrome/browser/search_engines/template_url.h" 48 #include "chrome/browser/search_engines/template_url.h"
49 #include "chrome/browser/search_engines/template_url_service.h" 49 #include "chrome/browser/search_engines/template_url_service.h"
50 #include "chrome/browser/search_engines/template_url_service_factory.h" 50 #include "chrome/browser/search_engines/template_url_service_factory.h"
51 #include "chrome/browser/spellchecker/spellcheck_host_metrics.h" 51 #include "chrome/browser/spellchecker/spellcheck_host_metrics.h"
52 #include "chrome/browser/spellchecker/spellcheck_service.h" 52 #include "chrome/browser/spellchecker/spellcheck_service.h"
53 #include "chrome/browser/tab_contents/retargeting_details.h" 53 #include "chrome/browser/tab_contents/retargeting_details.h"
54 #include "chrome/browser/translate/translate_manager.h"
55 #include "chrome/browser/translate/translate_service.h" 54 #include "chrome/browser/translate/translate_service.h"
56 #include "chrome/browser/translate/translate_tab_helper.h" 55 #include "chrome/browser/translate/translate_tab_helper.h"
57 #include "chrome/browser/ui/browser.h" 56 #include "chrome/browser/ui/browser.h"
58 #include "chrome/browser/ui/browser_commands.h" 57 #include "chrome/browser/ui/browser_commands.h"
59 #include "chrome/browser/ui/browser_finder.h" 58 #include "chrome/browser/ui/browser_finder.h"
60 #include "chrome/browser/ui/chrome_pages.h" 59 #include "chrome/browser/ui/chrome_pages.h"
61 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h" 60 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h"
62 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" 61 #include "chrome/browser/ui/tab_contents/core_tab_helper.h"
63 #include "chrome/common/chrome_constants.h" 62 #include "chrome/common/chrome_constants.h"
64 #include "chrome/common/chrome_switches.h" 63 #include "chrome/common/chrome_switches.h"
65 #include "chrome/common/content_restriction.h" 64 #include "chrome/common/content_restriction.h"
66 #include "chrome/common/net/url_util.h" 65 #include "chrome/common/net/url_util.h"
67 #include "chrome/common/pref_names.h" 66 #include "chrome/common/pref_names.h"
68 #include "chrome/common/render_messages.h" 67 #include "chrome/common/render_messages.h"
69 #include "chrome/common/spellcheck_messages.h" 68 #include "chrome/common/spellcheck_messages.h"
70 #include "chrome/common/url_constants.h" 69 #include "chrome/common/url_constants.h"
71 #include "components/translate/core/browser/translate_download_manager.h" 70 #include "components/translate/core/browser/translate_download_manager.h"
71 #include "components/translate/core/browser/translate_manager.h"
72 #include "components/translate/core/browser/translate_prefs.h" 72 #include "components/translate/core/browser/translate_prefs.h"
73 #include "content/public/browser/child_process_security_policy.h" 73 #include "content/public/browser/child_process_security_policy.h"
74 #include "content/public/browser/download_manager.h" 74 #include "content/public/browser/download_manager.h"
75 #include "content/public/browser/download_save_info.h" 75 #include "content/public/browser/download_save_info.h"
76 #include "content/public/browser/download_url_parameters.h" 76 #include "content/public/browser/download_url_parameters.h"
77 #include "content/public/browser/navigation_details.h" 77 #include "content/public/browser/navigation_details.h"
78 #include "content/public/browser/navigation_entry.h" 78 #include "content/public/browser/navigation_entry.h"
79 #include "content/public/browser/notification_service.h" 79 #include "content/public/browser/notification_service.h"
80 #include "content/public/browser/render_frame_host.h" 80 #include "content/public/browser/render_frame_host.h"
81 #include "content/public/browser/render_process_host.h" 81 #include "content/public/browser/render_process_host.h"
(...skipping 1968 matching lines...) Expand 10 before | Expand all | Expand 10 after
2050 source_web_contents_->GetRenderViewHost()-> 2050 source_web_contents_->GetRenderViewHost()->
2051 ExecuteMediaPlayerActionAtLocation(location, action); 2051 ExecuteMediaPlayerActionAtLocation(location, action);
2052 } 2052 }
2053 2053
2054 void RenderViewContextMenu::PluginActionAt( 2054 void RenderViewContextMenu::PluginActionAt(
2055 const gfx::Point& location, 2055 const gfx::Point& location,
2056 const WebPluginAction& action) { 2056 const WebPluginAction& action) {
2057 source_web_contents_->GetRenderViewHost()-> 2057 source_web_contents_->GetRenderViewHost()->
2058 ExecutePluginActionAtLocation(location, action); 2058 ExecutePluginActionAtLocation(location, action);
2059 } 2059 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/translate/translate_browsertest.cc » ('j') | chrome/browser/translate/translate_tab_helper.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698