summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/foreground_helper.h
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-14 01:12:38 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-14 01:12:38 +0000
commitd60cd48c0f4e822b3f14b72ef95667845aefce29 (patch)
tree0ff1158c36c6b60be74bf23bec59bd08726e9287 /webkit/tools/test_shell/foreground_helper.h
parented3ce0d59e2f52f805a8a76b112bfd48156416d0 (diff)
downloadchromium_src-d60cd48c0f4e822b3f14b72ef95667845aefce29.zip
chromium_src-d60cd48c0f4e822b3f14b72ef95667845aefce29.tar.gz
chromium_src-d60cd48c0f4e822b3f14b72ef95667845aefce29.tar.bz2
Change PluginInstallImpl to use base::WindowImpl instead of CWindowImpl to reduce a dependency on ATL.
BUG=5023 TEST=Uninstall flash. Visit hulu.com and install the flash plugin. Review URL: http://codereview.chromium.org/165469 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23406 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/foreground_helper.h')
-rw-r--r--webkit/tools/test_shell/foreground_helper.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/webkit/tools/test_shell/foreground_helper.h b/webkit/tools/test_shell/foreground_helper.h
index 9456ded..a687c0d 100644
--- a/webkit/tools/test_shell/foreground_helper.h
+++ b/webkit/tools/test_shell/foreground_helper.h
@@ -38,16 +38,16 @@ class ForegroundHelper : public base::WindowImpl {
// be in the foreground and allowed to move the target window
// into the foreground too.
- set_window_ex_style(WS_POPUP);
+ set_window_style(WS_POPUP);
Init(NULL, gfx::Rect());
static const int hotkey_id = 0x0000baba;
// Store the target window into our USERDATA for use in our
// HotKey handler.
- SetWindowLongPtr(GetNativeView(), GWLP_USERDATA,
+ SetWindowLongPtr(hwnd(), GWLP_USERDATA,
reinterpret_cast<ULONG_PTR>(window));
- RegisterHotKey(GetNativeView(), hotkey_id, 0, VK_F22);
+ RegisterHotKey(hwnd(), hotkey_id, 0, VK_F22);
// If the calling thread is not yet a UI thread, call PeekMessage
// to ensure creation of its message queue.
@@ -72,8 +72,8 @@ class ForegroundHelper : public base::WindowImpl {
break;
}
- UnregisterHotKey(GetNativeView(), hotkey_id);
- DestroyWindow();
+ UnregisterHotKey(hwnd(), hotkey_id);
+ DestroyWindow(hwnd());
return S_OK;
}
@@ -83,7 +83,7 @@ class ForegroundHelper : public base::WindowImpl {
WPARAM wparam,
LPARAM lparam,
BOOL& handled) {
- HWND window = reinterpret_cast<HWND>(GetWindowLongPtr(GetNativeView(),
+ HWND window = reinterpret_cast<HWND>(GetWindowLongPtr(hwnd(),
GWLP_USERDATA));
SetForegroundWindow(window);
return 1;