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

Side by Side Diff: Source/core/events/UIEventWithKeyState.h

Issue 1161783006: Populates sourceDevice attribute into TouchEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: sourceDevice set to null from Javascript Created 5 years, 6 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) 2001 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de)
4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 UIEventWithKeyState(const AtomicString& type, bool canBubble, bool cance lable, PassRefPtrWillBeRawPtr<AbstractView> view, 54 UIEventWithKeyState(const AtomicString& type, bool canBubble, bool cance lable, PassRefPtrWillBeRawPtr<AbstractView> view,
55 int detail, bool ctrlKey, bool altKey, bool shiftKey , bool metaKey) 55 int detail, bool ctrlKey, bool altKey, bool shiftKey , bool metaKey)
56 : UIEvent(type, canBubble, cancelable, view, detail) 56 : UIEvent(type, canBubble, cancelable, view, detail)
57 , m_ctrlKey(ctrlKey) 57 , m_ctrlKey(ctrlKey)
58 , m_altKey(altKey) 58 , m_altKey(altKey)
59 , m_shiftKey(shiftKey) 59 , m_shiftKey(shiftKey)
60 , m_metaKey(metaKey) 60 , m_metaKey(metaKey)
61 { 61 {
62 } 62 }
63 63
64 UIEventWithKeyState(const AtomicString& type, bool canBubble, bool cance lable, PassRefPtrWillBeRawPtr<AbstractView> view,
65 int detail, InputDevice* sourceDevice, bool ctrlKey, bool altKey, bo ol shiftKey, bool metaKey)
tdresser 2015/06/08 12:36:39 Where is this called?
lanwei 2015/06/09 20:07:10 It is called when constructing a touch event as a
66 : UIEvent(type, canBubble, cancelable, view, detail, sourceDevice)
67 , m_ctrlKey(ctrlKey)
68 , m_altKey(altKey)
69 , m_shiftKey(shiftKey)
70 , m_metaKey(metaKey)
71 {
72 }
73
64 // Expose these so init functions can set them. 74 // Expose these so init functions can set them.
65 bool m_ctrlKey : 1; 75 bool m_ctrlKey : 1;
66 bool m_altKey : 1; 76 bool m_altKey : 1;
67 bool m_shiftKey : 1; 77 bool m_shiftKey : 1;
68 bool m_metaKey : 1; 78 bool m_metaKey : 1;
69 79
70 private: 80 private:
71 static bool s_newTabModifierSetFromIsolatedWorld; 81 static bool s_newTabModifierSetFromIsolatedWorld;
72 }; 82 };
73 83
74 UIEventWithKeyState* findEventWithKeyState(Event*); 84 UIEventWithKeyState* findEventWithKeyState(Event*);
75 85
76 } // namespace blink 86 } // namespace blink
77 87
78 #endif // UIEventWithKeyState_h 88 #endif // UIEventWithKeyState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698