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

Side by Side Diff: third_party/WebKit/Source/core/events/InputEvent.h

Issue 2709883004: [InputEvent] Change |InputEventInit::sequence<Range> ranges| to |sequence<StaticRange> targetRanges| (Closed)
Patch Set: yosin's review: Use early return Created 3 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef InputEvent_h 5 #ifndef InputEvent_h
6 #define InputEvent_h 6 #define InputEvent_h
7 7
8 #include "core/clipboard/DataTransfer.h" 8 #include "core/clipboard/DataTransfer.h"
9 #include "core/dom/Range.h" 9 #include "core/dom/Range.h"
10 #include "core/dom/StaticRange.h" 10 #include "core/dom/StaticRange.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 enum EventIsComposing : bool { 76 enum EventIsComposing : bool {
77 NotComposing = false, 77 NotComposing = false,
78 IsComposing = true, 78 IsComposing = true,
79 }; 79 };
80 80
81 static InputEvent* createBeforeInput(InputType, 81 static InputEvent* createBeforeInput(InputType,
82 const String& data, 82 const String& data,
83 EventCancelable, 83 EventCancelable,
84 EventIsComposing, 84 EventIsComposing,
85 const RangeVector*); 85 const StaticRangeVector*);
86 static InputEvent* createBeforeInput(InputType, 86 static InputEvent* createBeforeInput(InputType,
87 DataTransfer*, 87 DataTransfer*,
88 EventCancelable, 88 EventCancelable,
89 EventIsComposing, 89 EventIsComposing,
90 const RangeVector*); 90 const StaticRangeVector*);
91 static InputEvent* createInput(InputType, 91 static InputEvent* createInput(InputType,
92 const String& data, 92 const String& data,
93 EventIsComposing, 93 EventIsComposing,
94 const RangeVector*); 94 const StaticRangeVector*);
95 95
96 String inputType() const; 96 String inputType() const;
97 const String& data() const { return m_data; } 97 const String& data() const { return m_data; }
98 DataTransfer* dataTransfer() const { return m_dataTransfer.get(); } 98 DataTransfer* dataTransfer() const { return m_dataTransfer.get(); }
99 bool isComposing() const { return m_isComposing; } 99 bool isComposing() const { return m_isComposing; }
100 // Returns a copy of target ranges during event dispatch, and returns an empty 100 // Returns a copy of target ranges during event dispatch, and returns an empty
101 // vector after dispatch. 101 // vector after dispatch.
102 StaticRangeVector getTargetRanges() const; 102 StaticRangeVector getTargetRanges() const;
103 103
104 bool isInputEvent() const override; 104 bool isInputEvent() const override;
(...skipping 23 matching lines...) Expand all
128 explicit InputEventDispatchMediator(InputEvent*); 128 explicit InputEventDispatchMediator(InputEvent*);
129 InputEvent& event() const; 129 InputEvent& event() const;
130 DispatchEventResult dispatchEvent(EventDispatcher&) const override; 130 DispatchEventResult dispatchEvent(EventDispatcher&) const override;
131 }; 131 };
132 132
133 DEFINE_EVENT_TYPE_CASTS(InputEvent); 133 DEFINE_EVENT_TYPE_CASTS(InputEvent);
134 134
135 } // namespace blink 135 } // namespace blink
136 136
137 #endif // InputEvent_h 137 #endif // InputEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698