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 #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 "content/browser/browser_plugin/browser_plugin_guest.h" | 9 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
10 #include "content/public/test/test_utils.h" | 10 #include "content/public/test/test_utils.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 public: | 24 public: |
25 TestBrowserPluginGuest(int instance_id, WebContentsImpl* web_contents); | 25 TestBrowserPluginGuest(int instance_id, WebContentsImpl* web_contents); |
26 virtual ~TestBrowserPluginGuest(); | 26 virtual ~TestBrowserPluginGuest(); |
27 | 27 |
28 WebContentsImpl* web_contents() const; | 28 WebContentsImpl* web_contents() const; |
29 | 29 |
30 // Overridden methods from BrowserPluginGuest to intercept in test objects. | 30 // Overridden methods from BrowserPluginGuest to intercept in test objects. |
31 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; | 31 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; |
32 virtual void OnHandleInputEvent(int instance_id, | 32 virtual void OnHandleInputEvent(int instance_id, |
33 const gfx::Rect& guest_window_rect, | 33 const gfx::Rect& guest_window_rect, |
34 const WebKit::WebInputEvent* event) OVERRIDE; | 34 const blink::WebInputEvent* event) OVERRIDE; |
35 virtual void OnSetFocus(int instance_id, bool focused) OVERRIDE; | 35 virtual void OnSetFocus(int instance_id, bool focused) OVERRIDE; |
36 virtual void OnTakeFocus(bool reverse) OVERRIDE; | 36 virtual void OnTakeFocus(bool reverse) OVERRIDE; |
37 virtual void SetDamageBuffer( | 37 virtual void SetDamageBuffer( |
38 const BrowserPluginHostMsg_ResizeGuest_Params& params) OVERRIDE; | 38 const BrowserPluginHostMsg_ResizeGuest_Params& params) OVERRIDE; |
39 virtual void DidStopLoading(RenderViewHost* render_view_host) OVERRIDE; | 39 virtual void DidStopLoading(RenderViewHost* render_view_host) OVERRIDE; |
40 | 40 |
41 // Overridden from WebContentsObserver. | 41 // Overridden from WebContentsObserver. |
42 virtual void WasHidden() OVERRIDE; | 42 virtual void WasHidden() OVERRIDE; |
43 | 43 |
44 // Test utilities to wait for a event we are interested in. | 44 // Test utilities to wait for a event we are interested in. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 scoped_refptr<MessageLoopRunner> input_message_loop_runner_; | 97 scoped_refptr<MessageLoopRunner> input_message_loop_runner_; |
98 scoped_refptr<MessageLoopRunner> load_stop_message_loop_runner_; | 98 scoped_refptr<MessageLoopRunner> load_stop_message_loop_runner_; |
99 scoped_refptr<MessageLoopRunner> auto_view_size_message_loop_runner_; | 99 scoped_refptr<MessageLoopRunner> auto_view_size_message_loop_runner_; |
100 | 100 |
101 DISALLOW_COPY_AND_ASSIGN(TestBrowserPluginGuest); | 101 DISALLOW_COPY_AND_ASSIGN(TestBrowserPluginGuest); |
102 }; | 102 }; |
103 | 103 |
104 } // namespace content | 104 } // namespace content |
105 | 105 |
106 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_ | 106 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_ |
OLD | NEW |