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

Unified Diff: tools/memory_watcher/hotkey.h

Issue 146833020: Remove some uses of ATL in UI code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 11 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 | « tools/memory_watcher/dllmain.cc ('k') | tools/memory_watcher/memory_watcher.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/memory_watcher/hotkey.h
diff --git a/tools/memory_watcher/hotkey.h b/tools/memory_watcher/hotkey.h
index 3773e5d7f810de4b19d03a5191ed0576157ba367..3ac430cdada2b7d3e3cae68d001b00d11479f59c 100644
--- a/tools/memory_watcher/hotkey.h
+++ b/tools/memory_watcher/hotkey.h
@@ -6,6 +6,7 @@
#define TOOLS_MEMORY_WATCHER_HOTKEY_H_
#include "ui/gfx/rect.h"
+#include "ui/gfx/win/msg_util.h"
#include "ui/gfx/win/window_impl.h"
// HotKey handler.
@@ -19,9 +20,9 @@ class HotKeyHandler : public gfx::WindowImpl {
}
~HotKeyHandler() { Stop(); }
- BEGIN_MSG_MAP_EX(HotKeyHandler)
- MESSAGE_HANDLER(WM_HOTKEY, OnHotKey)
- END_MSG_MAP()
+ CR_BEGIN_MSG_MAP_EX(HotKeyHandler)
+ CR_MSG_WM_HOTKEY(OnHotKey)
+ CR_END_MSG_MAP()
private:
static const int hotkey_id = 0x0000baba;
@@ -38,8 +39,9 @@ class HotKeyHandler : public gfx::WindowImpl {
}
// Handle the registered Hotkey being pressed.
- virtual LRESULT OnHotKey(UINT /*uMsg*/, WPARAM /*wParam*/,
- LPARAM /*lParam*/, BOOL& bHandled) = 0;
+ virtual void OnHotKey(UINT /*uMsg*/,
+ WPARAM /*wParam*/,
+ LPARAM /*lParam*/) = 0;
UINT modifiers_;
UINT vkey_;
« no previous file with comments | « tools/memory_watcher/dllmain.cc ('k') | tools/memory_watcher/memory_watcher.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698