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