| 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/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 2037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2048 // We must keep WebKit's shared timer running in this case in order to allow | 2048 // We must keep WebKit's shared timer running in this case in order to allow |
| 2049 // showModalDialog to function properly. | 2049 // showModalDialog to function properly. |
| 2050 // | 2050 // |
| 2051 // TODO(darin): WebKit should really be smarter about suppressing events and | 2051 // TODO(darin): WebKit should really be smarter about suppressing events and |
| 2052 // timers so that we do not need to manage the shared timer in such a heavy | 2052 // timers so that we do not need to manage the shared timer in such a heavy |
| 2053 // handed manner. | 2053 // handed manner. |
| 2054 // | 2054 // |
| 2055 if (RenderThreadImpl::current()) // Will be NULL during unit tests. | 2055 if (RenderThreadImpl::current()) // Will be NULL during unit tests. |
| 2056 RenderThreadImpl::current()->DoNotSuspendWebKitSharedTimer(); | 2056 RenderThreadImpl::current()->DoNotSuspendWebKitSharedTimer(); |
| 2057 | 2057 |
| 2058 SendAndRunNestedMessageLoop(new ViewHostMsg_RunModal(routing_id_)); | 2058 SendAndRunNestedMessageLoop(new ViewHostMsg_RunModal( |
| 2059 routing_id_, opener_id_)); |
| 2059 } | 2060 } |
| 2060 | 2061 |
| 2061 bool RenderViewImpl::enterFullScreen() { | 2062 bool RenderViewImpl::enterFullScreen() { |
| 2062 Send(new ViewHostMsg_ToggleFullscreen(routing_id_, true)); | 2063 Send(new ViewHostMsg_ToggleFullscreen(routing_id_, true)); |
| 2063 return true; | 2064 return true; |
| 2064 } | 2065 } |
| 2065 | 2066 |
| 2066 void RenderViewImpl::exitFullScreen() { | 2067 void RenderViewImpl::exitFullScreen() { |
| 2067 Send(new ViewHostMsg_ToggleFullscreen(routing_id_, false)); | 2068 Send(new ViewHostMsg_ToggleFullscreen(routing_id_, false)); |
| 2068 } | 2069 } |
| (...skipping 3173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5242 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 5243 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
| 5243 return !!RenderThreadImpl::current()->compositor_thread(); | 5244 return !!RenderThreadImpl::current()->compositor_thread(); |
| 5244 } | 5245 } |
| 5245 | 5246 |
| 5246 void RenderViewImpl::OnJavaBridgeInit() { | 5247 void RenderViewImpl::OnJavaBridgeInit() { |
| 5247 DCHECK(!java_bridge_dispatcher_.get()); | 5248 DCHECK(!java_bridge_dispatcher_.get()); |
| 5248 #if defined(ENABLE_JAVA_BRIDGE) | 5249 #if defined(ENABLE_JAVA_BRIDGE) |
| 5249 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); | 5250 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); |
| 5250 #endif | 5251 #endif |
| 5251 } | 5252 } |
| OLD | NEW |