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

Side by Side Diff: ui/views/widget/aero_tooltip_manager.cc

Issue 14061025: ui: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
« no previous file with comments | « ui/views/view_unittest.cc ('k') | ui/views/widget/desktop_aura/desktop_dispatcher_client.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "ui/views/widget/aero_tooltip_manager.h" 5 #include "ui/views/widget/aero_tooltip_manager.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <commctrl.h> 8 #include <commctrl.h>
9 #include <shlobj.h> 9 #include <shlobj.h>
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 } 88 }
89 89
90 /////////////////////////////////////////////////////////////////////////////// 90 ///////////////////////////////////////////////////////////////////////////////
91 // AeroTooltipManager::InitialTimer 91 // AeroTooltipManager::InitialTimer
92 92
93 AeroTooltipManager::InitialTimer::InitialTimer(AeroTooltipManager* manager) 93 AeroTooltipManager::InitialTimer::InitialTimer(AeroTooltipManager* manager)
94 : manager_(manager) { 94 : manager_(manager) {
95 } 95 }
96 96
97 void AeroTooltipManager::InitialTimer::Start(int time) { 97 void AeroTooltipManager::InitialTimer::Start(int time) {
98 MessageLoop::current()->PostDelayedTask(FROM_HERE, 98 base::MessageLoop::current()->PostDelayedTask(
99 FROM_HERE,
99 base::Bind(&InitialTimer::Execute, this), 100 base::Bind(&InitialTimer::Execute, this),
100 base::TimeDelta::FromMilliseconds(time)); 101 base::TimeDelta::FromMilliseconds(time));
101 } 102 }
102 103
103 void AeroTooltipManager::InitialTimer::Disown() { 104 void AeroTooltipManager::InitialTimer::Disown() {
104 manager_ = NULL; 105 manager_ = NULL;
105 } 106 }
106 107
107 void AeroTooltipManager::InitialTimer::Execute() { 108 void AeroTooltipManager::InitialTimer::Execute() {
108 if (manager_) 109 if (manager_)
109 manager_->OnTimer(); 110 manager_->OnTimer();
110 } 111 }
111 112
112 } // namespace views 113 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/view_unittest.cc ('k') | ui/views/widget/desktop_aura/desktop_dispatcher_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698