OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <algorithm> | 5 #include <algorithm> |
6 #include <set> | 6 #include <set> |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "chrome/browser/tab_contents/render_view_context_menu.h" | 9 #include "chrome/browser/tab_contents/render_view_context_menu.h" |
10 | 10 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 using content::ChildProcessSecurityPolicy; | 96 using content::ChildProcessSecurityPolicy; |
97 using content::DownloadManager; | 97 using content::DownloadManager; |
98 using content::DownloadUrlParameters; | 98 using content::DownloadUrlParameters; |
99 using content::NavigationController; | 99 using content::NavigationController; |
100 using content::NavigationEntry; | 100 using content::NavigationEntry; |
101 using content::OpenURLParams; | 101 using content::OpenURLParams; |
102 using content::RenderViewHost; | 102 using content::RenderViewHost; |
103 using content::SSLStatus; | 103 using content::SSLStatus; |
104 using content::UserMetricsAction; | 104 using content::UserMetricsAction; |
105 using content::WebContents; | 105 using content::WebContents; |
| 106 using extensions::Extension; |
106 | 107 |
107 namespace { | 108 namespace { |
108 | 109 |
109 // Usually a new tab is expected where this function is used, | 110 // Usually a new tab is expected where this function is used, |
110 // however users should be able to open a tab in background | 111 // however users should be able to open a tab in background |
111 // or in a new window. | 112 // or in a new window. |
112 WindowOpenDisposition ForceNewTabDispositionFromEventFlags( | 113 WindowOpenDisposition ForceNewTabDispositionFromEventFlags( |
113 int event_flags) { | 114 int event_flags) { |
114 WindowOpenDisposition disposition = | 115 WindowOpenDisposition disposition = |
115 browser::DispositionFromEventFlags(event_flags); | 116 browser::DispositionFromEventFlags(event_flags); |
(...skipping 1868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1984 source_web_contents_->GetRenderViewHost()-> | 1985 source_web_contents_->GetRenderViewHost()-> |
1985 ExecuteMediaPlayerActionAtLocation(location, action); | 1986 ExecuteMediaPlayerActionAtLocation(location, action); |
1986 } | 1987 } |
1987 | 1988 |
1988 void RenderViewContextMenu::PluginActionAt( | 1989 void RenderViewContextMenu::PluginActionAt( |
1989 const gfx::Point& location, | 1990 const gfx::Point& location, |
1990 const WebPluginAction& action) { | 1991 const WebPluginAction& action) { |
1991 source_web_contents_->GetRenderViewHost()-> | 1992 source_web_contents_->GetRenderViewHost()-> |
1992 ExecutePluginActionAtLocation(location, action); | 1993 ExecutePluginActionAtLocation(location, action); |
1993 } | 1994 } |
OLD | NEW |