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 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1262 } | 1262 } |
1263 | 1263 |
1264 // See if the video is set to looping. | 1264 // See if the video is set to looping. |
1265 if (id == IDC_CONTENT_CONTEXT_LOOP) { | 1265 if (id == IDC_CONTENT_CONTEXT_LOOP) { |
1266 return (params_.media_flags & | 1266 return (params_.media_flags & |
1267 WebContextMenuData::MediaLoop) != 0; | 1267 WebContextMenuData::MediaLoop) != 0; |
1268 } | 1268 } |
1269 | 1269 |
1270 if (id == IDC_CONTENT_CONTEXT_CONTROLS) { | 1270 if (id == IDC_CONTENT_CONTEXT_CONTROLS) { |
1271 return (params_.media_flags & | 1271 return (params_.media_flags & |
1272 WebContextMenuData::MediaControlRootElement) != 0; | 1272 WebContextMenuData::MediaControls) != 0; |
1273 } | 1273 } |
1274 | 1274 |
1275 // Custom items. | 1275 // Custom items. |
1276 if (id >= IDC_CONTENT_CONTEXT_CUSTOM_FIRST && | 1276 if (id >= IDC_CONTENT_CONTEXT_CUSTOM_FIRST && |
1277 id <= IDC_CONTENT_CONTEXT_CUSTOM_LAST) { | 1277 id <= IDC_CONTENT_CONTEXT_CUSTOM_LAST) { |
1278 return IsCustomItemChecked(params_.custom_items, id); | 1278 return IsCustomItemChecked(params_.custom_items, id); |
1279 } | 1279 } |
1280 | 1280 |
1281 // Extension items. | 1281 // Extension items. |
1282 if (id >= IDC_EXTENSIONS_CONTEXT_CUSTOM_FIRST && | 1282 if (id >= IDC_EXTENSIONS_CONTEXT_CUSTOM_FIRST && |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1854 source_web_contents_->GetRenderViewHost()-> | 1854 source_web_contents_->GetRenderViewHost()-> |
1855 ExecuteMediaPlayerActionAtLocation(location, action); | 1855 ExecuteMediaPlayerActionAtLocation(location, action); |
1856 } | 1856 } |
1857 | 1857 |
1858 void RenderViewContextMenu::PluginActionAt( | 1858 void RenderViewContextMenu::PluginActionAt( |
1859 const gfx::Point& location, | 1859 const gfx::Point& location, |
1860 const WebPluginAction& action) { | 1860 const WebPluginAction& action) { |
1861 source_web_contents_->GetRenderViewHost()-> | 1861 source_web_contents_->GetRenderViewHost()-> |
1862 ExecutePluginActionAtLocation(location, action); | 1862 ExecutePluginActionAtLocation(location, action); |
1863 } | 1863 } |
OLD | NEW |