Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Unified Diff: webkit/tools/test_shell/foreground_helper.h

Issue 165543: Revert "Reverting 23406" as it didn't break any tests.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/default_plugin/plugin_impl_win.cc ('k') | webkit/webkit.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/foreground_helper.h
===================================================================
--- webkit/tools/test_shell/foreground_helper.h (revision 23441)
+++ webkit/tools/test_shell/foreground_helper.h (working copy)
@@ -38,16 +38,16 @@
// 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 @@
break;
}
- UnregisterHotKey(GetNativeView(), hotkey_id);
- DestroyWindow();
+ UnregisterHotKey(hwnd(), hotkey_id);
+ DestroyWindow(hwnd());
return S_OK;
}
@@ -83,7 +83,7 @@
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;
« no previous file with comments | « webkit/default_plugin/plugin_impl_win.cc ('k') | webkit/webkit.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698