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" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 class BrowserPluginGuest; | 14 class BrowserPluginGuest; |
15 | 15 |
16 TestBrowserPluginGuest::TestBrowserPluginGuest( | 16 TestBrowserPluginGuest::TestBrowserPluginGuest( |
17 int instance_id, | 17 int instance_id, |
18 WebContentsImpl* web_contents) | 18 WebContentsImpl* web_contents) |
19 : BrowserPluginGuest(instance_id, false, web_contents, NULL), | 19 : BrowserPluginGuest(instance_id, false, web_contents), |
20 update_rect_count_(0), | 20 update_rect_count_(0), |
21 exit_observed_(false), | 21 exit_observed_(false), |
22 focus_observed_(false), | 22 focus_observed_(false), |
23 blur_observed_(false), | 23 blur_observed_(false), |
24 advance_focus_observed_(false), | 24 advance_focus_observed_(false), |
25 was_hidden_observed_(false), | 25 was_hidden_observed_(false), |
26 input_observed_(false), | 26 input_observed_(false), |
27 load_stop_observed_(false), | 27 load_stop_observed_(false), |
28 ime_cancel_observed_(false) { | 28 ime_cancel_observed_(false) { |
29 } | 29 } |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 BrowserPluginGuest::OnResizeGuest(instance_id, params); | 239 BrowserPluginGuest::OnResizeGuest(instance_id, params); |
240 } | 240 } |
241 | 241 |
242 void TestBrowserPluginGuest::WasHidden() { | 242 void TestBrowserPluginGuest::WasHidden() { |
243 was_hidden_observed_ = true; | 243 was_hidden_observed_ = true; |
244 if (was_hidden_message_loop_runner_) | 244 if (was_hidden_message_loop_runner_) |
245 was_hidden_message_loop_runner_->Quit(); | 245 was_hidden_message_loop_runner_->Quit(); |
246 } | 246 } |
247 | 247 |
248 } // namespace content | 248 } // namespace content |
OLD | NEW |