| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 | 8 |
| 9 MSVC_PUSH_WARNING_LEVEL(0); | 9 MSVC_PUSH_WARNING_LEVEL(0); |
| 10 #include "ContextMenu.h" | 10 #include "ContextMenu.h" |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 } | 200 } |
| 201 if (media_element->muted()) { | 201 if (media_element->muted()) { |
| 202 media_params.player_state |= ContextMenuMediaParams::MUTED; | 202 media_params.player_state |= ContextMenuMediaParams::MUTED; |
| 203 } | 203 } |
| 204 if (media_element->loop()) { | 204 if (media_element->loop()) { |
| 205 media_params.player_state |= ContextMenuMediaParams::LOOP; | 205 media_params.player_state |= ContextMenuMediaParams::LOOP; |
| 206 } | 206 } |
| 207 if (media_element->supportsSave()) { | 207 if (media_element->supportsSave()) { |
| 208 media_params.player_state |= ContextMenuMediaParams::CAN_SAVE; | 208 media_params.player_state |= ContextMenuMediaParams::CAN_SAVE; |
| 209 } | 209 } |
| 210 |
| 211 media_params.has_audio = media_element->hasAudio(); |
| 210 } | 212 } |
| 211 | 213 |
| 212 // If it's not a link, an image, a media element, or an image/media link, | 214 // If it's not a link, an image, a media element, or an image/media link, |
| 213 // show a selection menu or a more generic page menu. | 215 // show a selection menu or a more generic page menu. |
| 214 std::wstring selection_text_string; | 216 std::wstring selection_text_string; |
| 215 std::wstring misspelled_word_string; | 217 std::wstring misspelled_word_string; |
| 216 GURL frame_url; | 218 GURL frame_url; |
| 217 GURL page_url; | 219 GURL page_url; |
| 218 std::string security_info; | 220 std::string security_info; |
| 219 | 221 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 | 328 |
| 327 bool ContextMenuClientImpl::shouldIncludeInspectElementItem() { | 329 bool ContextMenuClientImpl::shouldIncludeInspectElementItem() { |
| 328 return false; // TODO(jackson): Eventually include the inspector context me
nu item | 330 return false; // TODO(jackson): Eventually include the inspector context me
nu item |
| 329 } | 331 } |
| 330 | 332 |
| 331 #if defined(OS_MACOSX) | 333 #if defined(OS_MACOSX) |
| 332 void ContextMenuClientImpl::searchWithSpotlight() { | 334 void ContextMenuClientImpl::searchWithSpotlight() { |
| 333 // TODO(pinkerton): write this | 335 // TODO(pinkerton): write this |
| 334 } | 336 } |
| 335 #endif | 337 #endif |
| OLD | NEW |