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

Side by Side Diff: tools/memory_watcher/hotkey.h

Issue 43148: Remove unneeded uses of logging.h in header files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef TOOLS_MEMORY_WATCHER_HOTKEY_H_ 5 #ifndef TOOLS_MEMORY_WATCHER_HOTKEY_H_
6 #define TOOLS_MEMORY_WATCHER_HOTKEY_H_ 6 #define TOOLS_MEMORY_WATCHER_HOTKEY_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlwin.h> 9 #include <atlwin.h>
10 #include "base/logging.h"
11 10
12 // HotKey handler. 11 // HotKey handler.
13 // Programs wishing to register a hotkey can use this. 12 // Programs wishing to register a hotkey can use this.
14 class HotKeyHandler : public CWindowImpl<HotKeyHandler> { 13 class HotKeyHandler : public CWindowImpl<HotKeyHandler> {
15 public: 14 public:
16 HotKeyHandler(UINT modifiers, UINT vk) 15 HotKeyHandler(UINT modifiers, UINT vk)
17 : m_modifiers(modifiers), 16 : m_modifiers(modifiers),
18 m_vkey(vk) { 17 m_vkey(vk) {
19 Start(); 18 Start();
20 } 19 }
(...skipping 19 matching lines...) Expand all
40 39
41 // Handle the registered Hotkey being pressed. 40 // Handle the registered Hotkey being pressed.
42 virtual LRESULT OnHotKey(UINT /*uMsg*/, WPARAM /*wParam*/, 41 virtual LRESULT OnHotKey(UINT /*uMsg*/, WPARAM /*wParam*/,
43 LPARAM /*lParam*/, BOOL& bHandled) = 0; 42 LPARAM /*lParam*/, BOOL& bHandled) = 0;
44 43
45 UINT m_modifiers; 44 UINT m_modifiers;
46 UINT m_vkey; 45 UINT m_vkey;
47 }; 46 };
48 47
49 #endif // TOOLS_MEMORY_WATCHER_HOTKEY_H_ 48 #endif // TOOLS_MEMORY_WATCHER_HOTKEY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698