| 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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 int visualViewportWidth(); | 486 int visualViewportWidth(); |
| 487 // The scroll position of the visual viewport relative to the document origin. | 487 // The scroll position of the visual viewport relative to the document origin. |
| 488 float visualViewportScrollX(); | 488 float visualViewportScrollX(); |
| 489 float visualViewportScrollY(); | 489 float visualViewportScrollY(); |
| 490 | 490 |
| 491 // Return true if the given use counter exists for the given document. | 491 // Return true if the given use counter exists for the given document. |
| 492 // |feature| must be one of the values from the UseCounter::Feature enum. | 492 // |feature| must be one of the values from the UseCounter::Feature enum. |
| 493 bool isUseCounted(Document*, uint32_t feature); | 493 bool isUseCounted(Document*, uint32_t feature); |
| 494 bool isCSSPropertyUseCounted(Document*, const String&); | 494 bool isCSSPropertyUseCounted(Document*, const String&); |
| 495 | 495 |
| 496 // Observes changes on Document's UseCounter. Returns a promise that is |
| 497 // resolved when |feature| is counted. When |feature| was already counted, |
| 498 // it's immediately resolved. |
| 499 ScriptPromise observeUseCounter(ScriptState*, Document*, uint32_t feature); |
| 500 |
| 496 // Used by the iterable<>. | 501 // Used by the iterable<>. |
| 497 unsigned length() const { return 5; } | 502 unsigned length() const { return 5; } |
| 498 int anonymousIndexedGetter(uint32_t index) const { return index * index; } | 503 int anonymousIndexedGetter(uint32_t index) const { return index * index; } |
| 499 | 504 |
| 500 String unscopableAttribute(); | 505 String unscopableAttribute(); |
| 501 String unscopableMethod(); | 506 String unscopableMethod(); |
| 502 | 507 |
| 503 ClientRectList* focusRingRects(Element*); | 508 ClientRectList* focusRingRects(Element*); |
| 504 ClientRectList* outlineRects(Element*); | 509 ClientRectList* outlineRects(Element*); |
| 505 | 510 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 const String& markerType, | 548 const String& markerType, |
| 544 unsigned index, | 549 unsigned index, |
| 545 ExceptionState&); | 550 ExceptionState&); |
| 546 Member<InternalRuntimeFlags> m_runtimeFlags; | 551 Member<InternalRuntimeFlags> m_runtimeFlags; |
| 547 Member<Document> m_document; | 552 Member<Document> m_document; |
| 548 }; | 553 }; |
| 549 | 554 |
| 550 } // namespace blink | 555 } // namespace blink |
| 551 | 556 |
| 552 #endif // Internals_h | 557 #endif // Internals_h |
| OLD | NEW |