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

Side by Side Diff: trunk/Source/platform/UserGestureIndicator.h

Issue 264333002: Revert 172810 "Add a "forwarded" flag to usergesture tokens." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 7 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 | « trunk/Source/core/frame/DOMWindow.cpp ('k') | trunk/Source/platform/UserGestureIndicator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 30 matching lines...) Expand all
41 PossiblyProcessingUserGesture, 41 PossiblyProcessingUserGesture,
42 DefinitelyNotProcessingUserGesture 42 DefinitelyNotProcessingUserGesture
43 }; 43 };
44 44
45 class PLATFORM_EXPORT UserGestureToken : public RefCounted<UserGestureToken> { 45 class PLATFORM_EXPORT UserGestureToken : public RefCounted<UserGestureToken> {
46 public: 46 public:
47 virtual ~UserGestureToken() { } 47 virtual ~UserGestureToken() { }
48 virtual bool hasGestures() const = 0; 48 virtual bool hasGestures() const = 0;
49 virtual void setOutOfProcess() = 0; 49 virtual void setOutOfProcess() = 0;
50 virtual void setJavascriptPrompt() = 0; 50 virtual void setJavascriptPrompt() = 0;
51 virtual bool wasForwarded() const = 0;
52 virtual void setForwarded() = 0;
53 }; 51 };
54 52
55 class PLATFORM_EXPORT UserGestureIndicatorDisabler { 53 class PLATFORM_EXPORT UserGestureIndicatorDisabler {
56 WTF_MAKE_NONCOPYABLE(UserGestureIndicatorDisabler); 54 WTF_MAKE_NONCOPYABLE(UserGestureIndicatorDisabler);
57 public: 55 public:
58 UserGestureIndicatorDisabler(); 56 UserGestureIndicatorDisabler();
59 ~UserGestureIndicatorDisabler(); 57 ~UserGestureIndicatorDisabler();
60 58
61 private: 59 private:
62 ProcessingUserGestureState m_savedState; 60 ProcessingUserGestureState m_savedState;
(...skipping 19 matching lines...) Expand all
82 static ProcessingUserGestureState s_state; 80 static ProcessingUserGestureState s_state;
83 static UserGestureIndicator* s_topmostIndicator; 81 static UserGestureIndicator* s_topmostIndicator;
84 static bool s_processedUserGestureInPast; 82 static bool s_processedUserGestureInPast;
85 ProcessingUserGestureState m_previousState; 83 ProcessingUserGestureState m_previousState;
86 RefPtr<UserGestureToken> m_token; 84 RefPtr<UserGestureToken> m_token;
87 }; 85 };
88 86
89 } 87 }
90 88
91 #endif 89 #endif
OLDNEW
« no previous file with comments | « trunk/Source/core/frame/DOMWindow.cpp ('k') | trunk/Source/platform/UserGestureIndicator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698