summaryrefslogtreecommitdiffstats
path: root/chrome_frame/chrome_frame_helper_util.h
diff options
context:
space:
mode:
authorrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-04 00:59:39 +0000
committerrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-04 00:59:39 +0000
commit35e09b2423478119f1175872ca00a165bf455f17 (patch)
tree5ceb5fd2b46020b83025c86e91f462935c44f742 /chrome_frame/chrome_frame_helper_util.h
parent8eb475b508d79cf63fde2a81ace45e4ff6b51b27 (diff)
downloadchromium_src-35e09b2423478119f1175872ca00a165bf455f17.zip
chromium_src-35e09b2423478119f1175872ca00a165bf455f17.tar.gz
chromium_src-35e09b2423478119f1175872ca00a165bf455f17.tar.bz2
Add support for IE9 to user-level installations of Chrome Frame.
BUG=70274 TEST=Install user-level Chrome Frame without admin privileges on a system with IE9. Observe CF being loaded in IE. Review URL: http://codereview.chromium.org/6246040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73721 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_frame_helper_util.h')
-rw-r--r--chrome_frame/chrome_frame_helper_util.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/chrome_frame/chrome_frame_helper_util.h b/chrome_frame/chrome_frame_helper_util.h
index f204debd..d80b07d 100644
--- a/chrome_frame/chrome_frame_helper_util.h
+++ b/chrome_frame/chrome_frame_helper_util.h
@@ -40,4 +40,32 @@ bool IsWindowOfClass(HWND hwnd_to_match, const wchar_t* window_class);
// Returns true if the current process name is process_name, false otherwise.
bool IsNamedProcess(const wchar_t* process_name);
+// Returns true if window has the name |window_name|, false otherwise.
+bool IsNamedWindow(HWND window, const wchar_t* window_name);
+
+//
+// This function recursively enumerates all windows from a given starting point
+// and searches for the first occurrence of a window matching
+// the class name and window name passed in. We use the EnumChildWindows API
+// to search for the window.
+// @note The FindWindowEx function does something similar, however, it goes
+// only one level deep and does not recurse descendants.
+// @param parent [in] The HWND of the window from which to start looking. If
+// this is NULL then enumerate all windows on the desktop.
+// @param class_name [in, optional] The class name of the matching window
+// @param window_name [in, optional] The window text of the matching window.
+// At least one of class_name and
+// window_name must be non-NULL.
+// @param thread_id_to_match [in] This parameter will be used to match
+// particular thread id for window.
+// @param process_id_to_match [in] This parameter will be used to match
+// particular process id for window.
+// @return The window handle of the matching window, if found, or NULL.
+//
+HWND RecurseFindWindow(HWND parent,
+ const wchar_t* class_name,
+ const wchar_t* window_name,
+ DWORD thread_id_to_match,
+ DWORD process_id_to_match);
+
#endif // CHROME_FRAME_CHROME_FRAME_HELPER_UTIL_H_