| 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 13 matching lines...) Expand all Loading... |
| 24 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 24 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
| 25 #include "content/browser/gpu/gpu_surface_tracker.h" | 25 #include "content/browser/gpu/gpu_surface_tracker.h" |
| 26 #include "content/browser/host_zoom_map_impl.h" | 26 #include "content/browser/host_zoom_map_impl.h" |
| 27 #include "content/browser/power_save_blocker.h" | 27 #include "content/browser/power_save_blocker.h" |
| 28 #include "content/browser/renderer_host/render_process_host_impl.h" | 28 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 29 #include "content/browser/renderer_host/render_view_host_delegate.h" | 29 #include "content/browser/renderer_host/render_view_host_delegate.h" |
| 30 #include "content/common/accessibility_messages.h" | 30 #include "content/common/accessibility_messages.h" |
| 31 #include "content/common/desktop_notification_messages.h" | 31 #include "content/common/desktop_notification_messages.h" |
| 32 #include "content/common/drag_messages.h" | 32 #include "content/common/drag_messages.h" |
| 33 #include "content/common/inter_process_time_ticks_converter.h" | 33 #include "content/common/inter_process_time_ticks_converter.h" |
| 34 #include "content/common/mouse_lock.h" |
| 34 #include "content/common/speech_recognition_messages.h" | 35 #include "content/common/speech_recognition_messages.h" |
| 35 #include "content/common/swapped_out_messages.h" | 36 #include "content/common/swapped_out_messages.h" |
| 36 #include "content/common/view_messages.h" | 37 #include "content/common/view_messages.h" |
| 37 #include "content/port/browser/render_view_host_delegate_view.h" | 38 #include "content/port/browser/render_view_host_delegate_view.h" |
| 38 #include "content/port/browser/render_widget_host_view_port.h" | 39 #include "content/port/browser/render_widget_host_view_port.h" |
| 39 #include "content/public/browser/browser_accessibility_state.h" | 40 #include "content/public/browser/browser_accessibility_state.h" |
| 40 #include "content/public/browser/browser_context.h" | 41 #include "content/public/browser/browser_context.h" |
| 41 #include "content/public/browser/browser_message_filter.h" | 42 #include "content/public/browser/browser_message_filter.h" |
| 42 #include "content/public/browser/content_browser_client.h" | 43 #include "content/public/browser/content_browser_client.h" |
| 43 #include "content/public/browser/dom_operation_notification_details.h" | 44 #include "content/public/browser/dom_operation_notification_details.h" |
| (...skipping 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1448 | 1449 |
| 1449 void RenderViewHostImpl::NotifyRendererUnresponsive() { | 1450 void RenderViewHostImpl::NotifyRendererUnresponsive() { |
| 1450 delegate_->RendererUnresponsive( | 1451 delegate_->RendererUnresponsive( |
| 1451 this, is_waiting_for_beforeunload_ack_ || is_waiting_for_unload_ack_); | 1452 this, is_waiting_for_beforeunload_ack_ || is_waiting_for_unload_ack_); |
| 1452 } | 1453 } |
| 1453 | 1454 |
| 1454 void RenderViewHostImpl::NotifyRendererResponsive() { | 1455 void RenderViewHostImpl::NotifyRendererResponsive() { |
| 1455 delegate_->RendererResponsive(this); | 1456 delegate_->RendererResponsive(this); |
| 1456 } | 1457 } |
| 1457 | 1458 |
| 1458 void RenderViewHostImpl::RequestToLockMouse(bool user_gesture) { | 1459 void RenderViewHostImpl::RequestToLockMouse( |
| 1459 delegate_->RequestToLockMouse(user_gesture); | 1460 MouseLockSource lock_source, |
| 1461 MouseUnlockSource previous_unlock_source) { |
| 1462 delegate_->RequestToLockMouse(lock_source, previous_unlock_source); |
| 1460 } | 1463 } |
| 1461 | 1464 |
| 1462 bool RenderViewHostImpl::IsFullscreen() const { | 1465 bool RenderViewHostImpl::IsFullscreen() const { |
| 1463 return delegate_->IsFullscreenForCurrentTab(); | 1466 return delegate_->IsFullscreenForCurrentTab(); |
| 1464 } | 1467 } |
| 1465 | 1468 |
| 1466 void RenderViewHostImpl::OnMsgFocus() { | 1469 void RenderViewHostImpl::OnMsgFocus() { |
| 1467 // Note: We allow focus and blur from swapped out RenderViewHosts, even when | 1470 // Note: We allow focus and blur from swapped out RenderViewHosts, even when |
| 1468 // the active RenderViewHost is in a different BrowsingInstance (e.g., WebUI). | 1471 // the active RenderViewHost is in a different BrowsingInstance (e.g., WebUI). |
| 1469 delegate_->Activate(); | 1472 delegate_->Activate(); |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1818 // can cause navigations to be ignored in OnMsgNavigate. | 1821 // can cause navigations to be ignored in OnMsgNavigate. |
| 1819 is_waiting_for_beforeunload_ack_ = false; | 1822 is_waiting_for_beforeunload_ack_ = false; |
| 1820 is_waiting_for_unload_ack_ = false; | 1823 is_waiting_for_unload_ack_ = false; |
| 1821 } | 1824 } |
| 1822 | 1825 |
| 1823 void RenderViewHostImpl::ClearPowerSaveBlockers() { | 1826 void RenderViewHostImpl::ClearPowerSaveBlockers() { |
| 1824 STLDeleteValues(&power_save_blockers_); | 1827 STLDeleteValues(&power_save_blockers_); |
| 1825 } | 1828 } |
| 1826 | 1829 |
| 1827 } // namespace content | 1830 } // namespace content |
| OLD | NEW |