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

Side by Side Diff: Source/platform/PlatformMouseEvent.h

Issue 453493002: Improve detection of touch events when hiding media controls. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@autoHideControls
Patch Set: Propagate SyntheticEventType to MouseRelatedEvent Created 6 years, 4 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) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006, 2009 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 } 84 }
85 85
86 const IntPoint& position() const { return m_position; } 86 const IntPoint& position() const { return m_position; }
87 const IntPoint& globalPosition() const { return m_globalPosition; } 87 const IntPoint& globalPosition() const { return m_globalPosition; }
88 const IntPoint& movementDelta() const { return m_movementDelta; } 88 const IntPoint& movementDelta() const { return m_movementDelta; }
89 89
90 MouseButton button() const { return m_button; } 90 MouseButton button() const { return m_button; }
91 int clickCount() const { return m_clickCount; } 91 int clickCount() const { return m_clickCount; }
92 unsigned modifierFlags() const { return m_modifierFlags; } 92 unsigned modifierFlags() const { return m_modifierFlags; }
93 bool fromTouch() const { return m_synthesized == FromTouch; } 93 bool fromTouch() const { return m_synthesized == FromTouch; }
94 SyntheticEventType syntheticEventType() const { return m_synthesized; }
94 95
95 protected: 96 protected:
96 IntPoint m_position; 97 IntPoint m_position;
97 IntPoint m_globalPosition; 98 IntPoint m_globalPosition;
98 IntPoint m_movementDelta; 99 IntPoint m_movementDelta;
99 MouseButton m_button; 100 MouseButton m_button;
100 int m_clickCount; 101 int m_clickCount;
101 SyntheticEventType m_synthesized; 102 SyntheticEventType m_synthesized;
102 unsigned m_modifierFlags; 103 unsigned m_modifierFlags;
103 }; 104 };
104 105
105 } // namespace blink 106 } // namespace blink
106 107
107 #endif // PlatformMouseEvent_h 108 #endif // PlatformMouseEvent_h
OLDNEW
« Source/core/page/EventHandler.cpp ('K') | « Source/core/page/EventHandler.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698