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

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

Issue 211373002: Oilpan: move DOMWindow object to the oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: setNativeInfoForInnerGlobalObject() -> setNativeInfoForHiddenWrapper() Created 6 years, 9 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
« no previous file with comments | « Source/core/events/CompositionEvent.h ('k') | Source/core/events/FocusEvent.h » ('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) 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 25 matching lines...) Expand all
36 } 36 }
37 37
38 CompositionEvent::CompositionEvent() 38 CompositionEvent::CompositionEvent()
39 : m_activeSegmentStart(0) 39 : m_activeSegmentStart(0)
40 , m_activeSegmentEnd(0) 40 , m_activeSegmentEnd(0)
41 { 41 {
42 ScriptWrappable::init(this); 42 ScriptWrappable::init(this);
43 initializeSegments(); 43 initializeSegments();
44 } 44 }
45 45
46 CompositionEvent::CompositionEvent(const AtomicString& type, PassRefPtr<Abstract View> view, const String& data, const Vector<CompositionUnderline>& underlines) 46 CompositionEvent::CompositionEvent(const AtomicString& type, PassRefPtrWillBeRaw Ptr<AbstractView> view, const String& data, const Vector<CompositionUnderline>& underlines)
47 : UIEvent(type, true, true, view, 0) 47 : UIEvent(type, true, true, view, 0)
48 , m_data(data) 48 , m_data(data)
49 , m_activeSegmentStart(0) 49 , m_activeSegmentStart(0)
50 , m_activeSegmentEnd(0) 50 , m_activeSegmentEnd(0)
51 { 51 {
52 ScriptWrappable::init(this); 52 ScriptWrappable::init(this);
53 initializeSegments(&underlines); 53 initializeSegments(&underlines);
54 } 54 }
55 55
56 CompositionEvent::CompositionEvent(const AtomicString& type, const CompositionEv entInit& initializer) 56 CompositionEvent::CompositionEvent(const AtomicString& type, const CompositionEv entInit& initializer)
57 : UIEvent(type, initializer) 57 : UIEvent(type, initializer)
58 , m_data(initializer.data) 58 , m_data(initializer.data)
59 , m_activeSegmentStart(0) 59 , m_activeSegmentStart(0)
60 , m_activeSegmentEnd(0) 60 , m_activeSegmentEnd(0)
61 { 61 {
62 ScriptWrappable::init(this); 62 ScriptWrappable::init(this);
63 initializeSegments(); 63 initializeSegments();
64 } 64 }
65 65
66 CompositionEvent::~CompositionEvent() 66 CompositionEvent::~CompositionEvent()
67 { 67 {
68 } 68 }
69 69
70 void CompositionEvent::initCompositionEvent(const AtomicString& type, bool canBu bble, bool cancelable, PassRefPtr<AbstractView> view, const String& data) 70 void CompositionEvent::initCompositionEvent(const AtomicString& type, bool canBu bble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView> view, const String& data)
71 { 71 {
72 if (dispatched()) 72 if (dispatched())
73 return; 73 return;
74 74
75 initUIEvent(type, canBubble, cancelable, view, 0); 75 initUIEvent(type, canBubble, cancelable, view, 0);
76 76
77 m_data = data; 77 m_data = data;
78 initializeSegments(); 78 initializeSegments();
79 } 79 }
80 80
(...skipping 23 matching lines...) Expand all
104 { 104 {
105 return EventNames::CompositionEvent; 105 return EventNames::CompositionEvent;
106 } 106 }
107 107
108 void CompositionEvent::trace(Visitor* visitor) 108 void CompositionEvent::trace(Visitor* visitor)
109 { 109 {
110 UIEvent::trace(visitor); 110 UIEvent::trace(visitor);
111 } 111 }
112 112
113 } // namespace WebCore 113 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/events/CompositionEvent.h ('k') | Source/core/events/FocusEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698