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

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

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/tab_contents/render_view_context_menu.h" 5 #include "chrome/browser/tab_contents/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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #include "chrome/browser/translate/translate_prefs.h" 54 #include "chrome/browser/translate/translate_prefs.h"
55 #include "chrome/browser/translate/translate_tab_helper.h" 55 #include "chrome/browser/translate/translate_tab_helper.h"
56 #include "chrome/browser/ui/browser.h" 56 #include "chrome/browser/ui/browser.h"
57 #include "chrome/browser/ui/browser_commands.h" 57 #include "chrome/browser/ui/browser_commands.h"
58 #include "chrome/browser/ui/browser_finder.h" 58 #include "chrome/browser/ui/browser_finder.h"
59 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h" 59 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h"
60 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" 60 #include "chrome/browser/ui/tab_contents/core_tab_helper.h"
61 #include "chrome/common/chrome_constants.h" 61 #include "chrome/common/chrome_constants.h"
62 #include "chrome/common/chrome_switches.h" 62 #include "chrome/common/chrome_switches.h"
63 #include "chrome/common/content_restriction.h" 63 #include "chrome/common/content_restriction.h"
64 #include "chrome/common/extensions/extension.h"
65 #include "chrome/common/net/url_util.h" 64 #include "chrome/common/net/url_util.h"
66 #include "chrome/common/pref_names.h" 65 #include "chrome/common/pref_names.h"
67 #include "chrome/common/render_messages.h" 66 #include "chrome/common/render_messages.h"
68 #include "chrome/common/spellcheck_messages.h" 67 #include "chrome/common/spellcheck_messages.h"
69 #include "chrome/common/url_constants.h" 68 #include "chrome/common/url_constants.h"
70 #include "content/public/browser/child_process_security_policy.h" 69 #include "content/public/browser/child_process_security_policy.h"
71 #include "content/public/browser/download_manager.h" 70 #include "content/public/browser/download_manager.h"
72 #include "content/public/browser/download_save_info.h" 71 #include "content/public/browser/download_save_info.h"
73 #include "content/public/browser/download_url_parameters.h" 72 #include "content/public/browser/download_url_parameters.h"
74 #include "content/public/browser/navigation_details.h" 73 #include "content/public/browser/navigation_details.h"
75 #include "content/public/browser/navigation_entry.h" 74 #include "content/public/browser/navigation_entry.h"
76 #include "content/public/browser/notification_service.h" 75 #include "content/public/browser/notification_service.h"
77 #include "content/public/browser/render_process_host.h" 76 #include "content/public/browser/render_process_host.h"
78 #include "content/public/browser/render_view_host.h" 77 #include "content/public/browser/render_view_host.h"
79 #include "content/public/browser/render_widget_host_view.h" 78 #include "content/public/browser/render_widget_host_view.h"
80 #include "content/public/browser/user_metrics.h" 79 #include "content/public/browser/user_metrics.h"
81 #include "content/public/browser/web_contents.h" 80 #include "content/public/browser/web_contents.h"
82 #include "content/public/common/menu_item.h" 81 #include "content/public/common/menu_item.h"
83 #include "content/public/common/ssl_status.h" 82 #include "content/public/common/ssl_status.h"
84 #include "content/public/common/url_utils.h" 83 #include "content/public/common/url_utils.h"
85 #include "extensions/browser/view_type_utils.h" 84 #include "extensions/browser/view_type_utils.h"
85 #include "extensions/common/extension.h"
86 #include "grit/generated_resources.h" 86 #include "grit/generated_resources.h"
87 #include "net/base/escape.h" 87 #include "net/base/escape.h"
88 #include "third_party/WebKit/public/web/WebContextMenuData.h" 88 #include "third_party/WebKit/public/web/WebContextMenuData.h"
89 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h" 89 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h"
90 #include "third_party/WebKit/public/web/WebPluginAction.h" 90 #include "third_party/WebKit/public/web/WebPluginAction.h"
91 #include "ui/base/clipboard/clipboard.h" 91 #include "ui/base/clipboard/clipboard.h"
92 #include "ui/base/l10n/l10n_util.h" 92 #include "ui/base/l10n/l10n_util.h"
93 #include "ui/gfx/favicon_size.h" 93 #include "ui/gfx/favicon_size.h"
94 #include "ui/gfx/point.h" 94 #include "ui/gfx/point.h"
95 #include "ui/gfx/size.h" 95 #include "ui/gfx/size.h"
(...skipping 2016 matching lines...) Expand 10 before | Expand all | Expand 10 after
2112 source_web_contents_->GetRenderViewHost()-> 2112 source_web_contents_->GetRenderViewHost()->
2113 ExecuteMediaPlayerActionAtLocation(location, action); 2113 ExecuteMediaPlayerActionAtLocation(location, action);
2114 } 2114 }
2115 2115
2116 void RenderViewContextMenu::PluginActionAt( 2116 void RenderViewContextMenu::PluginActionAt(
2117 const gfx::Point& location, 2117 const gfx::Point& location,
2118 const WebPluginAction& action) { 2118 const WebPluginAction& action) {
2119 source_web_contents_->GetRenderViewHost()-> 2119 source_web_contents_->GetRenderViewHost()->
2120 ExecutePluginActionAtLocation(location, action); 2120 ExecutePluginActionAtLocation(location, action);
2121 } 2121 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698