OLD | NEW |
1 /** | 1 /** |
2 * \file Wrapper.h Wrappers for Windows platform calls and the like. | 2 * \file Wrapper.h Wrappers for Windows platform calls and the like. |
3 * | 3 * |
4 * The main purpose of this file is to isolate Windows-specific data types, repl
acing them with ones from the standard library. | 4 * The main purpose of this file is to isolate Windows-specific data types, repl
acing them with ones from the standard library. |
5 */ | 5 */ |
6 | 6 |
7 #ifndef WRAPPER_H | 7 #ifndef WRAPPER_H |
8 #define WRAPPER_H | 8 #define WRAPPER_H |
9 | 9 |
10 /* | 10 /* |
(...skipping 16 matching lines...) Expand all Loading... |
27 std::wstring & Unescape_URL( std::wstring & url ) ; | 27 std::wstring & Unescape_URL( std::wstring & url ) ; |
28 | 28 |
29 /** | 29 /** |
30 * Wrapper around a pointer to an IWebBrowser2 interface. | 30 * Wrapper around a pointer to an IWebBrowser2 interface. |
31 */ | 31 */ |
32 class Browser | 32 class Browser |
33 { | 33 { |
34 /** | 34 /** |
35 * The underlying browser | 35 * The underlying browser |
36 */ | 36 */ |
37 CComQIPtr<IWebBrowser2> _browser; | 37 IWebBrowser2 * _browser; |
38 | 38 |
39 public: | 39 public: |
40 /** | 40 /** |
41 * Ordinary constructor. | 41 * Ordinary constructor. |
42 */ | 42 */ |
43 Browser( CComQIPtr<IWebBrowser2> browser ) | 43 Browser( IWebBrowser2 * browser ) |
44 : _browser( browser ) | 44 : _browser( browser ) |
45 {} | 45 {} |
46 | 46 |
47 /** | 47 /** |
48 * Navigate to a url in a new tab, or failing that, in a new window. | 48 * Navigate to a url in a new tab, or failing that, in a new window. |
49 * | 49 * |
50 * return true iff navigation was successful | 50 * return true iff navigation was successful |
51 */ | 51 */ |
52 HRESULT navigate( std::wstring url ); | 52 HRESULT navigate( std::wstring url ); |
53 | 53 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 * \return | 180 * \return |
181 * IDispatch point to the element if the element is found | 181 * IDispatch point to the element if the element is found |
182 * 0 otherwise | 182 * 0 otherwise |
183 */ | 183 */ |
184 IDispatch * at( long index ); | 184 IDispatch * at( long index ); |
185 }; | 185 }; |
186 | 186 |
187 } | 187 } |
188 | 188 |
189 #endif | 189 #endif |
OLD | NEW |