summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-13 17:52:48 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-13 17:52:48 +0000
commit00ffe5dd99527a0cb1035af6749417f5fb1c134e (patch)
tree4354d5b35be202204d9392417862b423ba374ce0 /webkit
parent65f73a3a996bdbaa167e38704df092aa39b53d3a (diff)
downloadchromium_src-00ffe5dd99527a0cb1035af6749417f5fb1c134e.zip
chromium_src-00ffe5dd99527a0cb1035af6749417f5fb1c134e.tar.gz
chromium_src-00ffe5dd99527a0cb1035af6749417f5fb1c134e.tar.bz2
Revert 15965. I wasn't supposed to check that in since it still doesn't compile on linux and mac!
TBR=sky Review URL: http://codereview.chromium.org/113351 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15967 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/tools/test_shell/foreground_helper.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/webkit/tools/test_shell/foreground_helper.h b/webkit/tools/test_shell/foreground_helper.h
index 3718e02..3d62b46 100644
--- a/webkit/tools/test_shell/foreground_helper.h
+++ b/webkit/tools/test_shell/foreground_helper.h
@@ -16,9 +16,9 @@
// This is probably leveraging a windows bug.
class ForegroundHelper : public CWindowImpl<ForegroundHelper> {
public:
- BEGIN_MSG_MAP(ForegroundHelper)
- MESSAGE_HANDLER(WM_HOTKEY, OnHotKey)
- END_MSG_MAP()
+BEGIN_MSG_MAP(ForegroundHelper)
+ MESSAGE_HANDLER(WM_HOTKEY, OnHotKey)
+END_MSG_MAP()
// Brings a window into the foreground.
// Can be called from any window, even if the caller is not the
@@ -37,7 +37,7 @@ class ForegroundHelper : public CWindowImpl<ForegroundHelper> {
// be in the foreground and allowed to move the target window
// into the foreground too.
- if (NULL == Create(NULL, NULL, NULL, WS_POPUP))
+ if(NULL == Create(NULL, NULL, NULL, WS_POPUP))
return AtlHresultFromLastError();
static const int hotkey_id = 0x0000baba;
@@ -62,11 +62,11 @@ class ForegroundHelper : public CWindowImpl<ForegroundHelper> {
// Loop until we get the key.
// TODO: It may be possible to get stuck here if the
// message gets lost?
- while (GetMessage(&msg, NULL, 0, 0)) {
+ while(GetMessage(&msg, NULL, 0, 0)) {
TranslateMessage(&msg);
DispatchMessage(&msg);
- if (WM_HOTKEY == msg.message)
+ if(WM_HOTKEY == msg.message)
break;
}
@@ -78,7 +78,7 @@ class ForegroundHelper : public CWindowImpl<ForegroundHelper> {
// Handle the registered Hotkey being pressed.
LRESULT OnHotKey(UINT /*uMsg*/, WPARAM /*wParam*/,
- LPARAM /*lParam*/, BOOL& bHandled) {
+ LPARAM /*lParam*/, BOOL& bHandled) {
HWND window = reinterpret_cast<HWND>(GetWindowLongPtr(GWLP_USERDATA));
SetForegroundWindow(window);
return 1;