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