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

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

Issue 10026013: Update use of TimeDelta in chrome/browser/*, ui/views/*, and other places. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase onto master. Created 8 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
« no previous file with comments | « ui/views/mouse_watcher.cc ('k') | ui/views/widget/tooltip_manager_win.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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( 98 MessageLoop::current()->PostDelayedTask(FROM_HERE,
99 FROM_HERE, base::Bind(&InitialTimer::Execute, this), time); 99 base::Bind(&InitialTimer::Execute, this),
100 base::TimeDelta::FromMilliseconds(time));
100 } 101 }
101 102
102 void AeroTooltipManager::InitialTimer::Disown() { 103 void AeroTooltipManager::InitialTimer::Disown() {
103 manager_ = NULL; 104 manager_ = NULL;
104 } 105 }
105 106
106 void AeroTooltipManager::InitialTimer::Execute() { 107 void AeroTooltipManager::InitialTimer::Execute() {
107 if (manager_) 108 if (manager_)
108 manager_->OnTimer(); 109 manager_->OnTimer();
109 } 110 }
110 111
111 } // namespace views 112 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/mouse_watcher.cc ('k') | ui/views/widget/tooltip_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698