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

Side by Side Diff: base/event_recorder.cc

Issue 48019: Removed unneeded includes of base/time.h. (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
« no previous file with comments | « base/condition_variable_win.cc ('k') | base/message_pump_mac.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) 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 #include "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <mmsystem.h> 8 #include <mmsystem.h>
9 9
10 #include "base/event_recorder.h" 10 #include "base/event_recorder.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/time.h"
14 13
15 // A note about time. 14 // A note about time.
16 // For perfect playback of events, you'd like a very accurate timer 15 // For perfect playback of events, you'd like a very accurate timer
17 // so that events are played back at exactly the same time that 16 // so that events are played back at exactly the same time that
18 // they were recorded. However, windows has a clock which is only 17 // they were recorded. However, windows has a clock which is only
19 // granular to ~15ms. We see more consistent event playback when 18 // granular to ~15ms. We see more consistent event playback when
20 // using a higher resolution timer. To do this, we use the 19 // using a higher resolution timer. To do this, we use the
21 // timeGetTime API instead of the default GetTickCount() API. 20 // timeGetTime API instead of the default GetTickCount() API.
22 21
23 namespace base { 22 namespace base {
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 // indicating that the message is not removed from the message queue after 250 // indicating that the message is not removed from the message queue after
252 // PeekMessage processing. 251 // PeekMessage processing.
253 case HC_NOREMOVE: 252 case HC_NOREMOVE:
254 break; 253 break;
255 } 254 }
256 255
257 return CallNextHookEx(journal_hook_, nCode, wParam, lParam); 256 return CallNextHookEx(journal_hook_, nCode, wParam, lParam);
258 } 257 }
259 258
260 } // namespace base 259 } // namespace base
OLDNEW
« no previous file with comments | « base/condition_variable_win.cc ('k') | base/message_pump_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698