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

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

Issue 11361052: Browser Plugin: Implement autosize (Embedder-side code) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: BrowserPluginHostMsg_AutoSize_Params had an int instead of bool for enable: fixed Created 8 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_messages.h" 10 #include "content/common/browser_plugin_messages.h"
11 #include "content/public/browser/notification_types.h" 11 #include "content/public/browser/notification_types.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 class BrowserPluginGuest; 15 class BrowserPluginGuest;
16 16
17 TestBrowserPluginGuest::TestBrowserPluginGuest( 17 TestBrowserPluginGuest::TestBrowserPluginGuest(
18 int instance_id, 18 int instance_id,
19 WebContentsImpl* web_contents, 19 WebContentsImpl* web_contents,
20 RenderViewHost* render_view_host, 20 RenderViewHost* render_view_host,
21 bool focused, 21 const BrowserPluginHostMsg_CreateGuest_Params& params)
22 bool visible)
23 : BrowserPluginGuest(instance_id, 22 : BrowserPluginGuest(instance_id,
24 web_contents, 23 web_contents,
25 render_view_host, 24 render_view_host,
26 focused, 25 params),
27 visible),
28 update_rect_count_(0), 26 update_rect_count_(0),
29 damage_buffer_call_count_(0), 27 damage_buffer_call_count_(0),
30 exit_observed_(false), 28 exit_observed_(false),
31 focus_observed_(false), 29 focus_observed_(false),
32 advance_focus_observed_(false), 30 advance_focus_observed_(false),
33 was_hidden_observed_(false), 31 was_hidden_observed_(false),
34 stop_observed_(false), 32 stop_observed_(false),
35 reload_observed_(false), 33 reload_observed_(false),
36 set_damage_buffer_observed_(false), 34 set_damage_buffer_observed_(false),
37 input_observed_(false), 35 input_observed_(false),
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 254
257 void TestBrowserPluginGuest::DidStopLoading( 255 void TestBrowserPluginGuest::DidStopLoading(
258 RenderViewHost* render_view_host) { 256 RenderViewHost* render_view_host) {
259 BrowserPluginGuest::DidStopLoading(render_view_host); 257 BrowserPluginGuest::DidStopLoading(render_view_host);
260 load_stop_observed_ = true; 258 load_stop_observed_ = true;
261 if (load_stop_message_loop_runner_) 259 if (load_stop_message_loop_runner_)
262 load_stop_message_loop_runner_->Quit(); 260 load_stop_message_loop_runner_->Quit();
263 } 261 }
264 262
265 } // namespace content 263 } // 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.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698