OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <functional> | 5 #include <functional> |
6 | 6 |
7 #include "chrome/browser/tab_contents/render_view_context_menu.h" | 7 #include "chrome/browser/tab_contents/render_view_context_menu.h" |
8 | 8 |
9 #include "app/clipboard/clipboard.h" | 9 #include "app/clipboard/clipboard.h" |
10 #include "app/clipboard/scoped_clipboard_writer.h" | 10 #include "app/clipboard/scoped_clipboard_writer.h" |
11 #include "app/l10n_util.h" | 11 #include "app/l10n_util.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
15 #include "chrome/app/chrome_dll_resource.h" | 15 #include "chrome/app/chrome_dll_resource.h" |
16 #include "chrome/browser/autocomplete/autocomplete_classifier.h" | 16 #include "chrome/browser/autocomplete/autocomplete_classifier.h" |
17 #include "chrome/browser/browser_process.h" | 17 #include "chrome/browser/browser_process.h" |
18 #include "chrome/browser/child_process_security_policy.h" | 18 #include "chrome/browser/child_process_security_policy.h" |
19 #include "chrome/browser/debugger/devtools_manager.h" | 19 #include "chrome/browser/debugger/devtools_manager.h" |
20 #include "chrome/browser/debugger/devtools_window.h" | 20 #include "chrome/browser/debugger/devtools_window.h" |
21 #include "chrome/browser/download/download_manager.h" | 21 #include "chrome/browser/download/download_manager.h" |
22 #include "chrome/browser/extensions/extension_menu_manager.h" | 22 #include "chrome/browser/extensions/extension_menu_manager.h" |
23 #include "chrome/browser/extensions/extensions_service.h" | 23 #include "chrome/browser/extensions/extensions_service.h" |
24 #include "chrome/browser/fonts_languages_window.h" | 24 #include "chrome/browser/fonts_languages_window.h" |
25 #include "chrome/browser/metrics/user_metrics.h" | 25 #include "chrome/browser/metrics/user_metrics.h" |
26 #include "chrome/browser/net/browser_url_util.h" | 26 #include "chrome/browser/net/browser_url_util.h" |
27 #include "chrome/browser/page_info_window.h" | 27 #include "chrome/browser/page_info_window.h" |
| 28 #include "chrome/browser/platform_util.h" |
28 #include "chrome/browser/pref_service.h" | 29 #include "chrome/browser/pref_service.h" |
29 #include "chrome/browser/profile.h" | 30 #include "chrome/browser/profile.h" |
30 #include "chrome/browser/renderer_host/render_view_host.h" | 31 #include "chrome/browser/renderer_host/render_view_host.h" |
31 #include "chrome/browser/search_engines/template_url_model.h" | 32 #include "chrome/browser/search_engines/template_url_model.h" |
32 #include "chrome/browser/spellcheck_host.h" | 33 #include "chrome/browser/spellcheck_host.h" |
33 #include "chrome/browser/spellchecker_platform_engine.h" | 34 #include "chrome/browser/spellchecker_platform_engine.h" |
34 #include "chrome/browser/tab_contents/navigation_entry.h" | 35 #include "chrome/browser/tab_contents/navigation_entry.h" |
35 #include "chrome/browser/tab_contents/tab_contents.h" | 36 #include "chrome/browser/tab_contents/tab_contents.h" |
36 #include "chrome/browser/translate/translate_manager.h" | 37 #include "chrome/browser/translate/translate_manager.h" |
37 #include "chrome/common/chrome_switches.h" | 38 #include "chrome/common/chrome_switches.h" |
38 #include "chrome/common/platform_util.h" | |
39 #include "chrome/common/pref_names.h" | 39 #include "chrome/common/pref_names.h" |
40 #include "chrome/common/url_constants.h" | 40 #include "chrome/common/url_constants.h" |
41 #include "grit/generated_resources.h" | 41 #include "grit/generated_resources.h" |
42 #include "net/base/escape.h" | 42 #include "net/base/escape.h" |
43 #include "net/url_request/url_request.h" | 43 #include "net/url_request/url_request.h" |
44 #include "webkit/glue/webmenuitem.h" | 44 #include "webkit/glue/webmenuitem.h" |
45 #include "third_party/WebKit/WebKit/chromium/public/WebContextMenuData.h" | 45 #include "third_party/WebKit/WebKit/chromium/public/WebContextMenuData.h" |
46 #include "third_party/WebKit/WebKit/chromium/public/WebMediaPlayerAction.h" | 46 #include "third_party/WebKit/WebKit/chromium/public/WebMediaPlayerAction.h" |
47 #include "third_party/WebKit/WebKit/chromium/public/WebTextDirection.h" | 47 #include "third_party/WebKit/WebKit/chromium/public/WebTextDirection.h" |
48 | 48 |
(...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1291 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages), | 1291 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages), |
1292 g_browser_process->clipboard()); | 1292 g_browser_process->clipboard()); |
1293 } | 1293 } |
1294 | 1294 |
1295 void RenderViewContextMenu::MediaPlayerActionAt( | 1295 void RenderViewContextMenu::MediaPlayerActionAt( |
1296 const gfx::Point& location, | 1296 const gfx::Point& location, |
1297 const WebMediaPlayerAction& action) { | 1297 const WebMediaPlayerAction& action) { |
1298 source_tab_contents_->render_view_host()->MediaPlayerActionAt( | 1298 source_tab_contents_->render_view_host()->MediaPlayerActionAt( |
1299 location, action); | 1299 location, action); |
1300 } | 1300 } |
OLD | NEW |