| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 using content::ChildProcessSecurityPolicy; | 95 using content::ChildProcessSecurityPolicy; |
| 96 using content::DownloadManager; | 96 using content::DownloadManager; |
| 97 using content::DownloadUrlParameters; | 97 using content::DownloadUrlParameters; |
| 98 using content::NavigationController; | 98 using content::NavigationController; |
| 99 using content::NavigationEntry; | 99 using content::NavigationEntry; |
| 100 using content::OpenURLParams; | 100 using content::OpenURLParams; |
| 101 using content::RenderViewHost; | 101 using content::RenderViewHost; |
| 102 using content::SSLStatus; | 102 using content::SSLStatus; |
| 103 using content::UserMetricsAction; | 103 using content::UserMetricsAction; |
| 104 using content::WebContents; | 104 using content::WebContents; |
| 105 using extensions::Extension; |
| 105 | 106 |
| 106 namespace { | 107 namespace { |
| 107 | 108 |
| 108 // Usually a new tab is expected where this function is used, | 109 // Usually a new tab is expected where this function is used, |
| 109 // however users should be able to open a tab in background | 110 // however users should be able to open a tab in background |
| 110 // or in a new window. | 111 // or in a new window. |
| 111 WindowOpenDisposition ForceNewTabDispositionFromEventFlags( | 112 WindowOpenDisposition ForceNewTabDispositionFromEventFlags( |
| 112 int event_flags) { | 113 int event_flags) { |
| 113 WindowOpenDisposition disposition = | 114 WindowOpenDisposition disposition = |
| 114 browser::DispositionFromEventFlags(event_flags); | 115 browser::DispositionFromEventFlags(event_flags); |
| (...skipping 1868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1983 source_web_contents_->GetRenderViewHost()-> | 1984 source_web_contents_->GetRenderViewHost()-> |
| 1984 ExecuteMediaPlayerActionAtLocation(location, action); | 1985 ExecuteMediaPlayerActionAtLocation(location, action); |
| 1985 } | 1986 } |
| 1986 | 1987 |
| 1987 void RenderViewContextMenu::PluginActionAt( | 1988 void RenderViewContextMenu::PluginActionAt( |
| 1988 const gfx::Point& location, | 1989 const gfx::Point& location, |
| 1989 const WebPluginAction& action) { | 1990 const WebPluginAction& action) { |
| 1990 source_web_contents_->GetRenderViewHost()-> | 1991 source_web_contents_->GetRenderViewHost()-> |
| 1991 ExecutePluginActionAtLocation(location, action); | 1992 ExecutePluginActionAtLocation(location, action); |
| 1992 } | 1993 } |
| OLD | NEW |