OLD | NEW |
---|---|
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 Loading... | |
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 |
OLD | NEW |