| 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 13 matching lines...) Expand all Loading... |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef UserGestureIndicator_h | 26 #ifndef UserGestureIndicator_h |
| 27 #define UserGestureIndicator_h | 27 #define UserGestureIndicator_h |
| 28 | 28 |
| 29 #include "platform/PlatformExport.h" | 29 #include "platform/PlatformExport.h" |
| 30 #include "wtf/Noncopyable.h" | 30 #include "wtf/Noncopyable.h" |
| 31 #include "wtf/RefCounted.h" | 31 #include "wtf/RefCounted.h" |
| 32 #include "wtf/RefPtr.h" | 32 #include "wtf/RefPtr.h" |
| 33 | 33 |
| 34 namespace WebCore { | 34 namespace blink { |
| 35 | 35 |
| 36 class UserGestureIndicator; | 36 class UserGestureIndicator; |
| 37 | 37 |
| 38 enum ProcessingUserGestureState { | 38 enum ProcessingUserGestureState { |
| 39 DefinitelyProcessingNewUserGesture, | 39 DefinitelyProcessingNewUserGesture, |
| 40 DefinitelyProcessingUserGesture, | 40 DefinitelyProcessingUserGesture, |
| 41 PossiblyProcessingUserGesture, | 41 PossiblyProcessingUserGesture, |
| 42 DefinitelyNotProcessingUserGesture | 42 DefinitelyNotProcessingUserGesture |
| 43 }; | 43 }; |
| 44 | 44 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 static ProcessingUserGestureState s_state; | 80 static ProcessingUserGestureState s_state; |
| 81 static UserGestureIndicator* s_topmostIndicator; | 81 static UserGestureIndicator* s_topmostIndicator; |
| 82 static bool s_processedUserGestureInPast; | 82 static bool s_processedUserGestureInPast; |
| 83 ProcessingUserGestureState m_previousState; | 83 ProcessingUserGestureState m_previousState; |
| 84 RefPtr<UserGestureToken> m_token; | 84 RefPtr<UserGestureToken> m_token; |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } | 87 } |
| 88 | 88 |
| 89 #endif | 89 #endif |
| OLD | NEW |