OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 { | 105 { |
106 } | 106 } |
107 | 107 |
108 size_t m_consumableGestures; | 108 size_t m_consumableGestures; |
109 double m_timestamp; | 109 double m_timestamp; |
110 bool m_outOfProcess; | 110 bool m_outOfProcess; |
111 bool m_javascriptPrompt; | 111 bool m_javascriptPrompt; |
112 bool m_pauseInDebugger; | 112 bool m_pauseInDebugger; |
113 }; | 113 }; |
114 | 114 |
115 } | 115 } // namespace |
116 | 116 |
117 static bool isDefinite(ProcessingUserGestureState state) | 117 static bool isDefinite(ProcessingUserGestureState state) |
118 { | 118 { |
119 return state == DefinitelyProcessingNewUserGesture || state == DefinitelyPro
cessingUserGesture || state == DefinitelyNotProcessingUserGesture; | 119 return state == DefinitelyProcessingNewUserGesture || state == DefinitelyPro
cessingUserGesture || state == DefinitelyNotProcessingUserGesture; |
120 } | 120 } |
121 | 121 |
122 ProcessingUserGestureState UserGestureIndicator::s_state = DefinitelyNotProcessi
ngUserGesture; | 122 ProcessingUserGestureState UserGestureIndicator::s_state = DefinitelyNotProcessi
ngUserGesture; |
123 UserGestureIndicator* UserGestureIndicator::s_topmostIndicator = 0; | 123 UserGestureIndicator* UserGestureIndicator::s_topmostIndicator = 0; |
124 bool UserGestureIndicator::s_processedUserGestureSinceLoad = false; | 124 bool UserGestureIndicator::s_processedUserGestureSinceLoad = false; |
125 | 125 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 s_processedUserGestureSinceLoad = false; | 217 s_processedUserGestureSinceLoad = false; |
218 } | 218 } |
219 | 219 |
220 bool UserGestureIndicator::processedUserGestureSinceLoad() | 220 bool UserGestureIndicator::processedUserGestureSinceLoad() |
221 { | 221 { |
222 if (!isMainThread()) | 222 if (!isMainThread()) |
223 return false; | 223 return false; |
224 return s_processedUserGestureSinceLoad; | 224 return s_processedUserGestureSinceLoad; |
225 } | 225 } |
226 | 226 |
227 } | 227 } // namespace blink |
OLD | NEW |