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

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

Issue 399016: Fix race conditions where an object's constructor uses PostTask on itself. T... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
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 VIEWS_WIDGET_AERO_TOOLTIP_MANAGER_H_ 5 #ifndef VIEWS_WIDGET_AERO_TOOLTIP_MANAGER_H_
6 #define VIEWS_WIDGET_AERO_TOOLTIP_MANAGER_H_ 6 #define VIEWS_WIDGET_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 "views/widget/tooltip_manager_win.h" 10 #include "views/widget/tooltip_manager_win.h"
(...skipping 22 matching lines...) Expand all
33 33
34 virtual 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 virtual void OnMouseLeave();
36 36
37 private: 37 private:
38 void Init(); 38 void Init();
39 void OnTimer(); 39 void OnTimer();
40 40
41 class InitialTimer : public base::RefCounted<InitialTimer> { 41 class InitialTimer : public base::RefCounted<InitialTimer> {
42 public: 42 public:
43 InitialTimer(AeroTooltipManager* manager, int time); 43 InitialTimer(AeroTooltipManager* manager);
jamesr 2009/11/17 21:00:07 This needs to be marked explicit
jam 2009/11/17 21:03:21 Done.
44 void Start(int time);
44 void Disown(); 45 void Disown();
45 void Execute(); 46 void Execute();
46 47
47 private: 48 private:
48 friend class base::RefCounted<InitialTimer>; 49 friend class base::RefCounted<InitialTimer>;
49 50
50 ~InitialTimer() {} 51 ~InitialTimer() {}
51 52
52 AeroTooltipManager* manager_; 53 AeroTooltipManager* manager_;
53 }; 54 };
54 55
55 int initial_delay_; 56 int initial_delay_;
56 scoped_refptr<InitialTimer> initial_timer_; 57 scoped_refptr<InitialTimer> initial_timer_;
57 }; 58 };
58 59
59 } // namespace views 60 } // namespace views
60 61
61 #endif // #ifndef VIEWS_WIDGET_AERO_TOOLTIP_MANAGER_H_ 62 #endif // #ifndef VIEWS_WIDGET_AERO_TOOLTIP_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/strict_transport_security_persister.cc ('k') | views/widget/aero_tooltip_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698