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

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

Issue 11364197: Refactoring media controls in WebKit - side effect for Chromium: (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698