OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_FRAME_TEST_IE_EVENT_SINK_H_ | 5 #ifndef CHROME_FRAME_TEST_IE_EVENT_SINK_H_ |
6 #define CHROME_FRAME_TEST_IE_EVENT_SINK_H_ | 6 #define CHROME_FRAME_TEST_IE_EVENT_SINK_H_ |
7 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlwin.h> | 9 #include <atlwin.h> |
10 #include <exdispid.h> | 10 #include <exdispid.h> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/scoped_comptr_win.h" | 13 #include "base/win/scoped_comptr.h" |
14 | 14 |
| 15 #include "chrome_frame/test/simulate_input.h" |
15 #include "chrome_frame/test_utils.h" | 16 #include "chrome_frame/test_utils.h" |
16 #include "chrome_frame/test/simulate_input.h" | |
17 | 17 |
18 // Include without path to make GYP build see it. | 18 // Include without path to make GYP build see it. |
19 #include "chrome_tab.h" // NOLINT | 19 #include "chrome_tab.h" // NOLINT |
20 | 20 |
21 namespace chrome_frame_test { | 21 namespace chrome_frame_test { |
22 | 22 |
23 // Listener for all events from the IEEventSink, defined below. This includes | 23 // Listener for all events from the IEEventSink, defined below. This includes |
24 // IE and CF events. Unfortunately some of these events are unreliable or have | 24 // IE and CF events. Unfortunately some of these events are unreliable or have |
25 // strange behavior across different platforms/browsers. See notes besides | 25 // strange behavior across different platforms/browsers. See notes besides |
26 // each method. | 26 // each method. |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 return DispEventsImpl::Invoke(dispid, riid, lcid, flags, params, result, | 226 return DispEventsImpl::Invoke(dispid, riid, lcid, flags, params, result, |
227 except_info, arg_error); | 227 except_info, arg_error); |
228 } | 228 } |
229 #endif // _DEBUG | 229 #endif // _DEBUG |
230 | 230 |
231 // IChromeFrame callbacks | 231 // IChromeFrame callbacks |
232 HRESULT OnLoad(const VARIANT* param); | 232 HRESULT OnLoad(const VARIANT* param); |
233 HRESULT OnLoadError(const VARIANT* param); | 233 HRESULT OnLoadError(const VARIANT* param); |
234 HRESULT OnMessage(const VARIANT* param); | 234 HRESULT OnMessage(const VARIANT* param); |
235 | 235 |
236 ScopedComPtr<IWebBrowser2> web_browser2_; | 236 base::win::ScopedComPtr<IWebBrowser2> web_browser2_; |
237 ScopedComPtr<IChromeFrame> chrome_frame_; | 237 base::win::ScopedComPtr<IChromeFrame> chrome_frame_; |
238 DispCallback<IEEventSink> onmessage_; | 238 DispCallback<IEEventSink> onmessage_; |
239 DispCallback<IEEventSink> onloaderror_; | 239 DispCallback<IEEventSink> onloaderror_; |
240 DispCallback<IEEventSink> onload_; | 240 DispCallback<IEEventSink> onload_; |
241 IEEventListener* listener_; | 241 IEEventListener* listener_; |
242 base::ProcessId ie_process_id_; | 242 base::ProcessId ie_process_id_; |
243 bool did_receive_on_quit_; | 243 bool did_receive_on_quit_; |
244 static bool abnormal_shutdown_; | 244 static bool abnormal_shutdown_; |
245 | 245 |
246 static _ATL_FUNC_INFO kBeforeNavigate2Info; | 246 static _ATL_FUNC_INFO kBeforeNavigate2Info; |
247 static _ATL_FUNC_INFO kNavigateComplete2Info; | 247 static _ATL_FUNC_INFO kNavigateComplete2Info; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 listener_ = listener; | 281 listener_ = listener; |
282 } | 282 } |
283 | 283 |
284 protected: | 284 protected: |
285 PropertyNotifySinkListener* listener_; | 285 PropertyNotifySinkListener* listener_; |
286 }; | 286 }; |
287 | 287 |
288 } // namespace chrome_frame_test | 288 } // namespace chrome_frame_test |
289 | 289 |
290 #endif // CHROME_FRAME_TEST_IE_EVENT_SINK_H_ | 290 #endif // CHROME_FRAME_TEST_IE_EVENT_SINK_H_ |
OLD | NEW |