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

Side by Side Diff: third_party/WebKit/Source/core/events/CompositionEvent.cpp

Issue 2030243004: Set Event.composed flag correctly for some of UA UIEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Created 4 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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 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 15 matching lines...) Expand all
26 26
27 #include "core/events/CompositionEvent.h" 27 #include "core/events/CompositionEvent.h"
28 28
29 namespace blink { 29 namespace blink {
30 30
31 CompositionEvent::CompositionEvent() 31 CompositionEvent::CompositionEvent()
32 { 32 {
33 } 33 }
34 34
35 CompositionEvent::CompositionEvent(const AtomicString& type, AbstractView* view, const String& data) 35 CompositionEvent::CompositionEvent(const AtomicString& type, AbstractView* view, const String& data)
36 : UIEvent(type, true, true, view, 0, InputDeviceCapabilities::doesntFireTouc hEventsSourceCapabilities()) 36 : UIEvent(type, true, true, ComposedMode::Composed, view, 0, InputDeviceCapa bilities::doesntFireTouchEventsSourceCapabilities())
37 , m_data(data) 37 , m_data(data)
38 { 38 {
39 } 39 }
40 40
41 CompositionEvent::CompositionEvent(const AtomicString& type, const CompositionEv entInit& initializer) 41 CompositionEvent::CompositionEvent(const AtomicString& type, const CompositionEv entInit& initializer)
42 : UIEvent(type, initializer) 42 : UIEvent(type, initializer)
43 { 43 {
44 if (initializer.hasData()) 44 if (initializer.hasData())
45 m_data = initializer.data(); 45 m_data = initializer.data();
46 } 46 }
(...skipping 16 matching lines...) Expand all
63 { 63 {
64 return EventNames::CompositionEvent; 64 return EventNames::CompositionEvent;
65 } 65 }
66 66
67 DEFINE_TRACE(CompositionEvent) 67 DEFINE_TRACE(CompositionEvent)
68 { 68 {
69 UIEvent::trace(visitor); 69 UIEvent::trace(visitor);
70 } 70 }
71 71
72 } // namespace blink 72 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/shadow-dom/resources/shadow-dom.js ('k') | third_party/WebKit/Source/core/events/Event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698