OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 15 matching lines...) Expand all Loading... | |
26 | 26 |
27 #ifndef Internals_h | 27 #ifndef Internals_h |
28 #define Internals_h | 28 #define Internals_h |
29 | 29 |
30 #include "bindings/core/v8/ExceptionState.h" | 30 #include "bindings/core/v8/ExceptionState.h" |
31 #include "bindings/core/v8/ScriptPromise.h" | 31 #include "bindings/core/v8/ScriptPromise.h" |
32 #include "bindings/core/v8/ScriptState.h" | 32 #include "bindings/core/v8/ScriptState.h" |
33 #include "bindings/core/v8/ScriptValue.h" | 33 #include "bindings/core/v8/ScriptValue.h" |
34 #include "bindings/core/v8/ScriptWrappable.h" | 34 #include "bindings/core/v8/ScriptWrappable.h" |
35 #include "core/css/CSSComputedStyleDeclaration.h" | 35 #include "core/css/CSSComputedStyleDeclaration.h" |
36 #include "core/editing/markers/DocumentMarker.h" | |
36 #include "core/page/scrolling/ScrollingCoordinator.h" | 37 #include "core/page/scrolling/ScrollingCoordinator.h" |
37 #include "platform/heap/Handle.h" | 38 #include "platform/heap/Handle.h" |
38 #include "wtf/Forward.h" | 39 #include "wtf/Forward.h" |
39 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
40 | 41 |
41 namespace blink { | 42 namespace blink { |
42 | 43 |
43 class Animation; | 44 class Animation; |
44 class CallbackFunctionTest; | 45 class CallbackFunctionTest; |
45 class CanvasRenderingContext; | 46 class CanvasRenderingContext; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
176 unsigned markerCountForNode(Node*, const String&, ExceptionState&); | 177 unsigned markerCountForNode(Node*, const String&, ExceptionState&); |
177 unsigned activeMarkerCountForNode(Node*); | 178 unsigned activeMarkerCountForNode(Node*); |
178 Range* markerRangeForNode(Node*, | 179 Range* markerRangeForNode(Node*, |
179 const String& markerType, | 180 const String& markerType, |
180 unsigned index, | 181 unsigned index, |
181 ExceptionState&); | 182 ExceptionState&); |
182 String markerDescriptionForNode(Node*, | 183 String markerDescriptionForNode(Node*, |
183 const String& markerType, | 184 const String& markerType, |
184 unsigned index, | 185 unsigned index, |
185 ExceptionState&); | 186 ExceptionState&); |
186 void addTextMatchMarker(const Range*, bool isActive); | 187 void addTextMatchMarker(const Range*, |
188 const String& matchStatus, | |
189 ExceptionState&); | |
187 void addCompositionMarker(const Range*, | 190 void addCompositionMarker(const Range*, |
188 const String& underlineColorValue, | 191 const String& underlineColorValue, |
189 bool thick, | 192 bool thick, |
190 const String& backgroundColorValue, | 193 const String& backgroundColorValue, |
191 ExceptionState&); | 194 ExceptionState&); |
192 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool); | 195 void setMarkersActive(Node*, |
196 unsigned startOffset, | |
197 unsigned endOffset, | |
198 bool isActive); | |
Xiaocheng
2017/04/04 21:48:38
Could you also change this one?
| |
193 void setMarkedTextMatchesAreHighlighted(Document*, bool); | 199 void setMarkedTextMatchesAreHighlighted(Document*, bool); |
194 | 200 |
195 void setFrameViewPosition(Document*, long x, long y, ExceptionState&); | 201 void setFrameViewPosition(Document*, long x, long y, ExceptionState&); |
196 String viewportAsText(Document*, | 202 String viewportAsText(Document*, |
197 float devicePixelRatio, | 203 float devicePixelRatio, |
198 int availableWidth, | 204 int availableWidth, |
199 int availableHeight, | 205 int availableHeight, |
200 ExceptionState&); | 206 ExceptionState&); |
201 | 207 |
202 bool elementShouldAutoComplete(Element* inputElement, ExceptionState&); | 208 bool elementShouldAutoComplete(Element* inputElement, ExceptionState&); |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
553 const String& markerType, | 559 const String& markerType, |
554 unsigned index, | 560 unsigned index, |
555 ExceptionState&); | 561 ExceptionState&); |
556 Member<InternalRuntimeFlags> m_runtimeFlags; | 562 Member<InternalRuntimeFlags> m_runtimeFlags; |
557 Member<Document> m_document; | 563 Member<Document> m_document; |
558 }; | 564 }; |
559 | 565 |
560 } // namespace blink | 566 } // namespace blink |
561 | 567 |
562 #endif // Internals_h | 568 #endif // Internals_h |
OLD | NEW |