Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(597)

Side by Side Diff: content/browser/browser_plugin/test_browser_plugin_guest.cc

Issue 11312179: C++ readability review for lazyboy@ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync @tott Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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, web_contents, NULL, false), 19 : BrowserPluginGuest(instance_id, false, web_contents, NULL),
20 update_rect_count_(0), 20 update_rect_count_(0),
21 damage_buffer_call_count_(0), 21 damage_buffer_call_count_(0),
22 exit_observed_(false), 22 exit_observed_(false),
23 focus_observed_(false), 23 focus_observed_(false),
24 blur_observed_(false), 24 blur_observed_(false),
25 advance_focus_observed_(false), 25 advance_focus_observed_(false),
26 was_hidden_observed_(false), 26 was_hidden_observed_(false),
27 set_damage_buffer_observed_(false), 27 set_damage_buffer_observed_(false),
28 input_observed_(false), 28 input_observed_(false),
29 load_stop_observed_(false), 29 load_stop_observed_(false),
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/test_browser_plugin_guest.h ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698