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

Side by Side Diff: chrome/views/aero_tooltip_manager.h

Issue 11540: Fixes bug where tooltips would get stuck. This was happening because... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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
« no previous file with comments | « no previous file | chrome/views/aero_tooltip_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_VIEWS_AERO_TOOLTIP_MANAGER_H__ 5 #ifndef CHROME_VIEWS_AERO_TOOLTIP_MANAGER_H__
6 #define CHROME_VIEWS_AERO_TOOLTIP_MANAGER_H__ 6 #define CHROME_VIEWS_AERO_TOOLTIP_MANAGER_H__
7 7
8 #include "base/ref_counted.h" 8 #include "base/ref_counted.h"
9 #include "base/task.h" 9 #include "base/task.h"
10 #include "chrome/views/tooltip_manager.h" 10 #include "chrome/views/tooltip_manager.h"
(...skipping 13 matching lines...) Expand all
24 // 24 //
25 // So instead, we have to partially implement tooltips ourselves using 25 // So instead, we have to partially implement tooltips ourselves using
26 // TTF_TRACKed tooltips. 26 // TTF_TRACKed tooltips.
27 // 27 //
28 // TODO(glen): Resolve this with Microsoft. 28 // TODO(glen): Resolve this with Microsoft.
29 class AeroTooltipManager : public TooltipManager { 29 class AeroTooltipManager : public TooltipManager {
30 public: 30 public:
31 AeroTooltipManager(Container* container, HWND parent); 31 AeroTooltipManager(Container* container, HWND parent);
32 virtual ~AeroTooltipManager(); 32 virtual ~AeroTooltipManager();
33 33
34 void OnMouse(UINT u_msg, WPARAM w_param, LPARAM l_param); 34 virtual void OnMouse(UINT u_msg, WPARAM w_param, LPARAM l_param);
35 virtual void OnMouseLeave();
35 36
36 private: 37 private:
37 void Init(); 38 void Init();
38 void OnTimer(); 39 void OnTimer();
39 40
40 class InitialTimer : public base::RefCounted<InitialTimer> { 41 class InitialTimer : public base::RefCounted<InitialTimer> {
41 public: 42 public:
42 InitialTimer(AeroTooltipManager* manager, int time); 43 InitialTimer(AeroTooltipManager* manager, int time);
43 void Disown(); 44 void Disown();
44 void Execute(); 45 void Execute();
45 46
46 private: 47 private:
47 AeroTooltipManager* manager_; 48 AeroTooltipManager* manager_;
48 }; 49 };
49 50
50 int initial_delay_; 51 int initial_delay_;
51 scoped_refptr<InitialTimer> initial_timer_; 52 scoped_refptr<InitialTimer> initial_timer_;
52 }; 53 };
53 54
54 } // namespace views 55 } // namespace views
55 56
56 #endif // #ifndef CHROME_VIEWS_AERO_TOOLTIP_MANAGER_H__ 57 #endif // #ifndef CHROME_VIEWS_AERO_TOOLTIP_MANAGER_H__
57 58
OLDNEW
« no previous file with comments | « no previous file | chrome/views/aero_tooltip_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698