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: third_party/WebKit/Source/core/html/forms/TypeAhead.h

Issue 1352523002: Use high precision timestamp for Event.timestamp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 }; 57 };
58 using MatchModeFlags = unsigned; 58 using MatchModeFlags = unsigned;
59 59
60 // Returns the index for the matching option. 60 // Returns the index for the matching option.
61 int handleEvent(KeyboardEvent*, MatchModeFlags); 61 int handleEvent(KeyboardEvent*, MatchModeFlags);
62 bool hasActiveSession(KeyboardEvent*); 62 bool hasActiveSession(KeyboardEvent*);
63 void resetSession(); 63 void resetSession();
64 64
65 private: 65 private:
66 TypeAheadDataSource* m_dataSource; 66 TypeAheadDataSource* m_dataSource;
67 DOMTimeStamp m_lastTypeTime; 67 double m_lastTypeTime;
Rick Byers 2015/09/25 17:29:33 Can this be a DOMHighRestTimestamp to make it clea
majidvp 2015/09/29 14:21:31 This is not really a DOMHighResTimeStamp but the a
Rick Byers 2015/09/29 15:57:59 Thanks, makes sense. Adding the comment is good e
68 UChar m_repeatingChar; 68 UChar m_repeatingChar;
69 StringBuilder m_buffer; 69 StringBuilder m_buffer;
70 }; 70 };
71 71
72 } // namespace blink 72 } // namespace blink
73 73
74 #endif // TypeAhead_h 74 #endif // TypeAhead_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698