| 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 25 matching lines...) Expand all Loading... |
| 36 #include "platform/bindings/ScriptWrappable.h" | 36 #include "platform/bindings/ScriptWrappable.h" |
| 37 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
| 38 #include "platform/wtf/Forward.h" | 38 #include "platform/wtf/Forward.h" |
| 39 #include "platform/wtf/text/WTFString.h" | 39 #include "platform/wtf/text/WTFString.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class Animation; | 43 class Animation; |
| 44 class CallbackFunctionTest; | 44 class CallbackFunctionTest; |
| 45 class CanvasRenderingContext; | 45 class CanvasRenderingContext; |
| 46 class ClientRect; | 46 class DOMRect; |
| 47 class ClientRectList; | 47 class ClientRectList; |
| 48 class DOMArrayBuffer; | 48 class DOMArrayBuffer; |
| 49 class DOMPoint; | 49 class DOMPoint; |
| 50 class DOMWindow; | 50 class DOMWindow; |
| 51 class Dictionary; | 51 class Dictionary; |
| 52 class DictionaryTest; | 52 class DictionaryTest; |
| 53 class Document; | 53 class Document; |
| 54 class DocumentMarker; | 54 class DocumentMarker; |
| 55 class Element; | 55 class Element; |
| 56 class ExceptionState; | 56 class ExceptionState; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 163 |
| 164 String visiblePlaceholder(Element*); | 164 String visiblePlaceholder(Element*); |
| 165 void selectColorInColorChooser(Element*, const String& color_value); | 165 void selectColorInColorChooser(Element*, const String& color_value); |
| 166 void endColorChooser(Element*); | 166 void endColorChooser(Element*); |
| 167 bool hasAutofocusRequest(Document*); | 167 bool hasAutofocusRequest(Document*); |
| 168 bool hasAutofocusRequest(); | 168 bool hasAutofocusRequest(); |
| 169 Vector<String> formControlStateOfHistoryItem(ExceptionState&); | 169 Vector<String> formControlStateOfHistoryItem(ExceptionState&); |
| 170 void setFormControlStateOfHistoryItem(const Vector<String>&, ExceptionState&); | 170 void setFormControlStateOfHistoryItem(const Vector<String>&, ExceptionState&); |
| 171 DOMWindow* pagePopupWindow() const; | 171 DOMWindow* pagePopupWindow() const; |
| 172 | 172 |
| 173 ClientRect* absoluteCaretBounds(ExceptionState&); | 173 DOMRect* absoluteCaretBounds(ExceptionState&); |
| 174 | 174 |
| 175 ClientRect* boundingBox(Element*); | 175 DOMRect* boundingBox(Element*); |
| 176 | 176 |
| 177 void setMarker(Document*, const Range*, const String&, ExceptionState&); | 177 void setMarker(Document*, const Range*, const String&, ExceptionState&); |
| 178 unsigned markerCountForNode(Node*, const String&, ExceptionState&); | 178 unsigned markerCountForNode(Node*, const String&, ExceptionState&); |
| 179 unsigned activeMarkerCountForNode(Node*); | 179 unsigned activeMarkerCountForNode(Node*); |
| 180 Range* markerRangeForNode(Node*, | 180 Range* markerRangeForNode(Node*, |
| 181 const String& marker_type, | 181 const String& marker_type, |
| 182 unsigned index, | 182 unsigned index, |
| 183 ExceptionState&); | 183 ExceptionState&); |
| 184 String markerDescriptionForNode(Node*, | 184 String markerDescriptionForNode(Node*, |
| 185 const String& marker_type, | 185 const String& marker_type, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 long width, | 241 long width, |
| 242 long height, | 242 long height, |
| 243 Document*, | 243 Document*, |
| 244 ExceptionState&); | 244 ExceptionState&); |
| 245 Node* touchNodeAdjustedToBestContextMenuNode(long x, | 245 Node* touchNodeAdjustedToBestContextMenuNode(long x, |
| 246 long y, | 246 long y, |
| 247 long width, | 247 long width, |
| 248 long height, | 248 long height, |
| 249 Document*, | 249 Document*, |
| 250 ExceptionState&); | 250 ExceptionState&); |
| 251 ClientRect* bestZoomableAreaForTouchPoint(long x, | 251 DOMRect* bestZoomableAreaForTouchPoint(long x, |
| 252 long y, | 252 long y, |
| 253 long width, | 253 long width, |
| 254 long height, | 254 long height, |
| 255 Document*, | 255 Document*, |
| 256 ExceptionState&); | 256 ExceptionState&); |
| 257 | 257 |
| 258 int lastSpellCheckRequestSequence(Document*, ExceptionState&); | 258 int lastSpellCheckRequestSequence(Document*, ExceptionState&); |
| 259 int lastSpellCheckProcessedSequence(Document*, ExceptionState&); | 259 int lastSpellCheckProcessedSequence(Document*, ExceptionState&); |
| 260 String idleTimeSpellCheckerState(Document*, ExceptionState&); | 260 String idleTimeSpellCheckerState(Document*, ExceptionState&); |
| 261 void runIdleTimeSpellChecker(Document*, ExceptionState&); | 261 void runIdleTimeSpellChecker(Document*, ExceptionState&); |
| 262 | 262 |
| 263 Vector<AtomicString> userPreferredLanguages() const; | 263 Vector<AtomicString> userPreferredLanguages() const; |
| 264 void setUserPreferredLanguages(const Vector<String>&); | 264 void setUserPreferredLanguages(const Vector<String>&); |
| 265 | 265 |
| 266 unsigned mediaKeysCount(); | 266 unsigned mediaKeysCount(); |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 String selectMenuListText(HTMLSelectElement*); | 433 String selectMenuListText(HTMLSelectElement*); |
| 434 bool isSelectPopupVisible(Node*); | 434 bool isSelectPopupVisible(Node*); |
| 435 bool selectPopupItemStyleIsRtl(Node*, int); | 435 bool selectPopupItemStyleIsRtl(Node*, int); |
| 436 int selectPopupItemStyleFontHeight(Node*, int); | 436 int selectPopupItemStyleFontHeight(Node*, int); |
| 437 void resetTypeAheadSession(HTMLSelectElement*); | 437 void resetTypeAheadSession(HTMLSelectElement*); |
| 438 | 438 |
| 439 Node* visibleSelectionAnchorNode(); | 439 Node* visibleSelectionAnchorNode(); |
| 440 unsigned visibleSelectionAnchorOffset(); | 440 unsigned visibleSelectionAnchorOffset(); |
| 441 Node* visibleSelectionFocusNode(); | 441 Node* visibleSelectionFocusNode(); |
| 442 unsigned visibleSelectionFocusOffset(); | 442 unsigned visibleSelectionFocusOffset(); |
| 443 ClientRect* selectionBounds(ExceptionState&); | 443 DOMRect* selectionBounds(ExceptionState&); |
| 444 String textAffinity(); | 444 String textAffinity(); |
| 445 | 445 |
| 446 bool loseSharedGraphicsContext3D(); | 446 bool loseSharedGraphicsContext3D(); |
| 447 | 447 |
| 448 void forceCompositingUpdate(Document*, ExceptionState&); | 448 void forceCompositingUpdate(Document*, ExceptionState&); |
| 449 | 449 |
| 450 void setZoomFactor(float); | 450 void setZoomFactor(float); |
| 451 | 451 |
| 452 void setShouldRevealPassword(Element*, bool, ExceptionState&); | 452 void setShouldRevealPassword(Element*, bool, ExceptionState&); |
| 453 | 453 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 // ScrollAnimatorCompositorCoordinater::RunState), or -1 if the node does not | 549 // ScrollAnimatorCompositorCoordinater::RunState), or -1 if the node does not |
| 550 // have a scrollable area. | 550 // have a scrollable area. |
| 551 String getScrollAnimationState(Node*) const; | 551 String getScrollAnimationState(Node*) const; |
| 552 | 552 |
| 553 // Returns the run state of the node's programmatic scroll animator (see | 553 // Returns the run state of the node's programmatic scroll animator (see |
| 554 // ScrollAnimatorCompositorCoordinater::RunState), or -1 if the node does not | 554 // ScrollAnimatorCompositorCoordinater::RunState), or -1 if the node does not |
| 555 // have a scrollable area. | 555 // have a scrollable area. |
| 556 String getProgrammaticScrollAnimationState(Node*) const; | 556 String getProgrammaticScrollAnimationState(Node*) const; |
| 557 | 557 |
| 558 // Returns the visual rect of a node's LayoutObject. | 558 // Returns the visual rect of a node's LayoutObject. |
| 559 ClientRect* visualRect(Node*); | 559 DOMRect* visualRect(Node*); |
| 560 | 560 |
| 561 // Intentional crash. | 561 // Intentional crash. |
| 562 void crash(); | 562 void crash(); |
| 563 | 563 |
| 564 // Overrides if the device is low-end (low on memory). | 564 // Overrides if the device is low-end (low on memory). |
| 565 void setIsLowEndDevice(bool); | 565 void setIsLowEndDevice(bool); |
| 566 | 566 |
| 567 private: | 567 private: |
| 568 explicit Internals(ExecutionContext*); | 568 explicit Internals(ExecutionContext*); |
| 569 Document* ContextDocument() const; | 569 Document* ContextDocument() const; |
| 570 LocalFrame* GetFrame() const; | 570 LocalFrame* GetFrame() const; |
| 571 Vector<String> IconURLs(Document*, int icon_types_mask) const; | 571 Vector<String> IconURLs(Document*, int icon_types_mask) const; |
| 572 ClientRectList* AnnotatedRegions(Document*, bool draggable, ExceptionState&); | 572 ClientRectList* AnnotatedRegions(Document*, bool draggable, ExceptionState&); |
| 573 | 573 |
| 574 DocumentMarker* MarkerAt(Node*, | 574 DocumentMarker* MarkerAt(Node*, |
| 575 const String& marker_type, | 575 const String& marker_type, |
| 576 unsigned index, | 576 unsigned index, |
| 577 ExceptionState&); | 577 ExceptionState&); |
| 578 Member<InternalRuntimeFlags> runtime_flags_; | 578 Member<InternalRuntimeFlags> runtime_flags_; |
| 579 Member<Document> document_; | 579 Member<Document> document_; |
| 580 }; | 580 }; |
| 581 | 581 |
| 582 } // namespace blink | 582 } // namespace blink |
| 583 | 583 |
| 584 #endif // Internals_h | 584 #endif // Internals_h |
| OLD | NEW |