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

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

Issue 11360106: Browser Plugin: Implement AutoSize (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with ToT 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 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_
6 #define CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_ 6 #define CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "content/browser/browser_plugin/browser_plugin_guest.h" 10 #include "content/browser/browser_plugin/browser_plugin_guest.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Waits until guest exits. 72 // Waits until guest exits.
73 void WaitForExit(); 73 void WaitForExit();
74 // Waits until a reload request is observed. 74 // Waits until a reload request is observed.
75 void WaitForReload(); 75 void WaitForReload();
76 // Waits until a stop request is observed. 76 // Waits until a stop request is observed.
77 void WaitForStop(); 77 void WaitForStop();
78 // Waits until input is observed. 78 // Waits until input is observed.
79 void WaitForInput(); 79 void WaitForInput();
80 // Waits until 'loadstop' is observed. 80 // Waits until 'loadstop' is observed.
81 void WaitForLoadStop(); 81 void WaitForLoadStop();
82 // Waits until UpdateRect with a particular |view_size| is observed.
83 void WaitForViewSize(const gfx::Size& view_size);
82 84
83 private: 85 private:
84 // Overridden methods from BrowserPluginGuest to intercept in test objects. 86 // Overridden methods from BrowserPluginGuest to intercept in test objects.
85 virtual void SendMessageToEmbedder(IPC::Message* msg) OVERRIDE; 87 virtual void SendMessageToEmbedder(IPC::Message* msg) OVERRIDE;
86 88
87 int update_rect_count_; 89 int update_rect_count_;
88 int damage_buffer_call_count_; 90 int damage_buffer_call_count_;
89 bool exit_observed_; 91 bool exit_observed_;
90 bool focus_observed_; 92 bool focus_observed_;
91 bool blur_observed_; 93 bool blur_observed_;
92 bool advance_focus_observed_; 94 bool advance_focus_observed_;
93 bool was_hidden_observed_; 95 bool was_hidden_observed_;
94 bool stop_observed_; 96 bool stop_observed_;
95 bool reload_observed_; 97 bool reload_observed_;
96 bool set_damage_buffer_observed_; 98 bool set_damage_buffer_observed_;
97 bool input_observed_; 99 bool input_observed_;
98 bool load_stop_observed_; 100 bool load_stop_observed_;
101 gfx::Size last_view_size_observed_;
102 gfx::Size expected_auto_view_size_;
99 103
100 // For WaitForDamageBufferWithSize(). 104 // For WaitForDamageBufferWithSize().
101 bool waiting_for_damage_buffer_with_size_; 105 bool waiting_for_damage_buffer_with_size_;
102 gfx::Size expected_damage_buffer_size_; 106 gfx::Size expected_damage_buffer_size_;
103 gfx::Size last_damage_buffer_size_; 107 gfx::Size last_damage_buffer_size_;
104 108
105 scoped_refptr<MessageLoopRunner> send_message_loop_runner_; 109 scoped_refptr<MessageLoopRunner> send_message_loop_runner_;
106 scoped_refptr<MessageLoopRunner> crash_message_loop_runner_; 110 scoped_refptr<MessageLoopRunner> crash_message_loop_runner_;
107 scoped_refptr<MessageLoopRunner> focus_message_loop_runner_; 111 scoped_refptr<MessageLoopRunner> focus_message_loop_runner_;
108 scoped_refptr<MessageLoopRunner> blur_message_loop_runner_; 112 scoped_refptr<MessageLoopRunner> blur_message_loop_runner_;
109 scoped_refptr<MessageLoopRunner> advance_focus_message_loop_runner_; 113 scoped_refptr<MessageLoopRunner> advance_focus_message_loop_runner_;
110 scoped_refptr<MessageLoopRunner> was_hidden_message_loop_runner_; 114 scoped_refptr<MessageLoopRunner> was_hidden_message_loop_runner_;
111 scoped_refptr<MessageLoopRunner> reload_message_loop_runner_; 115 scoped_refptr<MessageLoopRunner> reload_message_loop_runner_;
112 scoped_refptr<MessageLoopRunner> stop_message_loop_runner_; 116 scoped_refptr<MessageLoopRunner> stop_message_loop_runner_;
113 scoped_refptr<MessageLoopRunner> damage_buffer_message_loop_runner_; 117 scoped_refptr<MessageLoopRunner> damage_buffer_message_loop_runner_;
114 scoped_refptr<MessageLoopRunner> input_message_loop_runner_; 118 scoped_refptr<MessageLoopRunner> input_message_loop_runner_;
115 scoped_refptr<MessageLoopRunner> load_stop_message_loop_runner_; 119 scoped_refptr<MessageLoopRunner> load_stop_message_loop_runner_;
120 scoped_refptr<MessageLoopRunner> auto_view_size_message_loop_runner_;
116 121
117 DISALLOW_COPY_AND_ASSIGN(TestBrowserPluginGuest); 122 DISALLOW_COPY_AND_ASSIGN(TestBrowserPluginGuest);
118 }; 123 };
119 124
120 } // namespace content 125 } // namespace content
121 126
122 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_ 127 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698