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/browser_plugin/test_browser_plugin_guest.h" | 5 #include "content/browser/browser_plugin/test_browser_plugin_guest.h" |
6 | 6 |
7 #include "base/test/test_timeouts.h" | 7 #include "base/test/test_timeouts.h" |
8 #include "content/browser/renderer_host/render_view_host_impl.h" | 8 #include "content/browser/renderer_host/render_view_host_impl.h" |
9 #include "content/browser/web_contents/web_contents_impl.h" | 9 #include "content/browser/web_contents/web_contents_impl.h" |
10 #include "content/common/browser_plugin/browser_plugin_messages.h" | 10 #include "content/common/browser_plugin/browser_plugin_messages.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 status != base::TERMINATION_STATUS_STILL_RUNNING) | 85 status != base::TERMINATION_STATUS_STILL_RUNNING) |
86 LOG(INFO) << "Guest crashed status: " << status; | 86 LOG(INFO) << "Guest crashed status: " << status; |
87 if (crash_message_loop_runner_.get()) | 87 if (crash_message_loop_runner_.get()) |
88 crash_message_loop_runner_->Quit(); | 88 crash_message_loop_runner_->Quit(); |
89 BrowserPluginGuest::RenderProcessGone(status); | 89 BrowserPluginGuest::RenderProcessGone(status); |
90 } | 90 } |
91 | 91 |
92 void TestBrowserPluginGuest::OnHandleInputEvent( | 92 void TestBrowserPluginGuest::OnHandleInputEvent( |
93 int instance_id, | 93 int instance_id, |
94 const gfx::Rect& guest_window_rect, | 94 const gfx::Rect& guest_window_rect, |
95 const WebKit::WebInputEvent* event) { | 95 const blink::WebInputEvent* event) { |
96 BrowserPluginGuest::OnHandleInputEvent(instance_id, | 96 BrowserPluginGuest::OnHandleInputEvent(instance_id, |
97 guest_window_rect, | 97 guest_window_rect, |
98 event); | 98 event); |
99 input_observed_ = true; | 99 input_observed_ = true; |
100 if (input_message_loop_runner_.get()) | 100 if (input_message_loop_runner_.get()) |
101 input_message_loop_runner_->Quit(); | 101 input_message_loop_runner_->Quit(); |
102 } | 102 } |
103 | 103 |
104 void TestBrowserPluginGuest::WaitForExit() { | 104 void TestBrowserPluginGuest::WaitForExit() { |
105 // Check if we already observed a guest crash, return immediately if so. | 105 // Check if we already observed a guest crash, return immediately if so. |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 load_stop_message_loop_runner_->Quit(); | 224 load_stop_message_loop_runner_->Quit(); |
225 } | 225 } |
226 | 226 |
227 void TestBrowserPluginGuest::WasHidden() { | 227 void TestBrowserPluginGuest::WasHidden() { |
228 was_hidden_observed_ = true; | 228 was_hidden_observed_ = true; |
229 if (was_hidden_message_loop_runner_.get()) | 229 if (was_hidden_message_loop_runner_.get()) |
230 was_hidden_message_loop_runner_->Quit(); | 230 was_hidden_message_loop_runner_->Quit(); |
231 } | 231 } |
232 | 232 |
233 } // namespace content | 233 } // namespace content |
OLD | NEW |