| 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 "content/browser/renderer_host/render_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1353 // This is defensive code to avoid infinite loops due to code run inside | 1353 // This is defensive code to avoid infinite loops due to code run inside |
| 1354 // UpdateWebkitPreferences() accidentally updating more preferences and thus | 1354 // UpdateWebkitPreferences() accidentally updating more preferences and thus |
| 1355 // calling back into this code. See crbug.com/398751 for one past example. | 1355 // calling back into this code. See crbug.com/398751 for one past example. |
| 1356 if (updating_web_preferences_) | 1356 if (updating_web_preferences_) |
| 1357 return; | 1357 return; |
| 1358 updating_web_preferences_ = true; | 1358 updating_web_preferences_ = true; |
| 1359 UpdateWebkitPreferences(delegate_->ComputeWebkitPrefs()); | 1359 UpdateWebkitPreferences(delegate_->ComputeWebkitPrefs()); |
| 1360 updating_web_preferences_ = false; | 1360 updating_web_preferences_ = false; |
| 1361 } | 1361 } |
| 1362 | 1362 |
| 1363 void RenderViewHostImpl::GetAudioOutputControllers( | |
| 1364 const GetAudioOutputControllersCallback& callback) const { | |
| 1365 scoped_refptr<AudioRendererHost> audio_host = | |
| 1366 static_cast<RenderProcessHostImpl*>(GetProcess())->audio_renderer_host(); | |
| 1367 audio_host->GetOutputControllers(GetRoutingID(), callback); | |
| 1368 } | |
| 1369 | |
| 1370 void RenderViewHostImpl::ClearFocusedElement() { | 1363 void RenderViewHostImpl::ClearFocusedElement() { |
| 1371 is_focused_element_editable_ = false; | 1364 is_focused_element_editable_ = false; |
| 1372 Send(new ViewMsg_ClearFocusedElement(GetRoutingID())); | 1365 Send(new ViewMsg_ClearFocusedElement(GetRoutingID())); |
| 1373 } | 1366 } |
| 1374 | 1367 |
| 1375 bool RenderViewHostImpl::IsFocusedElementEditable() { | 1368 bool RenderViewHostImpl::IsFocusedElementEditable() { |
| 1376 return is_focused_element_editable_; | 1369 return is_focused_element_editable_; |
| 1377 } | 1370 } |
| 1378 | 1371 |
| 1379 void RenderViewHostImpl::Zoom(PageZoom zoom) { | 1372 void RenderViewHostImpl::Zoom(PageZoom zoom) { |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1479 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1472 FrameTree* frame_tree = delegate_->GetFrameTree(); |
| 1480 | 1473 |
| 1481 frame_tree->ResetForMainFrameSwap(); | 1474 frame_tree->ResetForMainFrameSwap(); |
| 1482 } | 1475 } |
| 1483 | 1476 |
| 1484 void RenderViewHostImpl::SelectWordAroundCaret() { | 1477 void RenderViewHostImpl::SelectWordAroundCaret() { |
| 1485 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1478 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
| 1486 } | 1479 } |
| 1487 | 1480 |
| 1488 } // namespace content | 1481 } // namespace content |
| OLD | NEW |