| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_FRAME_CHROME_FRAME_HELPER_UTIL_H_ |
| 6 #define CHROME_FRAME_CHROME_FRAME_HELPER_UTIL_H_ |
| 7 |
| 8 #include <windows.h> |
| 9 |
| 10 // Compare the given class name with the known window class names for |
| 11 // internet explorer browser windows. |
| 12 // |
| 13 // @param [in] window_to_check handle to the window to be checked |
| 14 // |
| 15 // @return true if the window class matches known class names for IE browser. |
| 16 // |
| 17 bool UtilIsWebBrowserWindow(HWND window_to_check); |
| 18 |
| 19 // A utility function that retrieves the specified web browser COM interface |
| 20 // from the web browser window. The passed in window must be the web browser |
| 21 // window (class name "IEFrame" in IE6 and "TabWindowClass" in IE7) |
| 22 // @param[in] window The web browser window whose COM object is to be fetched |
| 23 // @param[in] iid The IID of the interface to be fetched |
| 24 // @param[out] web_browser_object |
| 25 // The requested interface pointer to the web browser object |
| 26 // is returned in this variable upon success |
| 27 // |
| 28 HRESULT UtilGetWebBrowserObjectFromWindow(HWND window, |
| 29 REFIID iid, |
| 30 void** web_browser_object); |
| 31 |
| 32 // Checks to see whether the passed in window is of the class specified. |
| 33 // of the heirarchy list |
| 34 // @param hwnd_to_match [in] The handle of the window that is to be |
| 35 // matched. |
| 36 // @param window_class [in] The window class to match against. |
| 37 // |
| 38 bool IsWindowOfClass(HWND hwnd_to_match, const wchar_t* window_class); |
| 39 |
| 40 // Returns true if the current process name is process_name, false otherwise. |
| 41 bool IsNamedProcess(const wchar_t* process_name); |
| 42 |
| 43 #endif // CHROME_FRAME_CHROME_FRAME_HELPER_UTIL_H_ |
| OLD | NEW |