| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 #include "wtf/OwnPtr.h" | 37 #include "wtf/OwnPtr.h" |
| 38 #include "wtf/PassOwnPtr.h" | 38 #include "wtf/PassOwnPtr.h" |
| 39 #include "wtf/PassRefPtr.h" | 39 #include "wtf/PassRefPtr.h" |
| 40 #include "wtf/RefPtr.h" | 40 #include "wtf/RefPtr.h" |
| 41 #include "wtf/Vector.h" | 41 #include "wtf/Vector.h" |
| 42 | 42 |
| 43 namespace blink { | 43 namespace blink { |
| 44 | 44 |
| 45 // FIXME: Rename this because it contains resolution and upgrade as | 45 // FIXME: Rename this because it contains resolution and upgrade as |
| 46 // well as callbacks. | 46 // well as callbacks. |
| 47 class CustomElementCallbackQueue : public DummyBase<CustomElementCallbackQueue>
{ | 47 class CustomElementCallbackQueue { |
| 48 WTF_MAKE_NONCOPYABLE(CustomElementCallbackQueue); | 48 WTF_MAKE_NONCOPYABLE(CustomElementCallbackQueue); |
| 49 public: | 49 public: |
| 50 static PassOwnPtr<CustomElementCallbackQueue> create(PassRefPtr<Element>); | 50 static PassOwnPtr<CustomElementCallbackQueue> create(PassRefPtr<Element>); |
| 51 | 51 |
| 52 typedef int ElementQueueId; | 52 typedef int ElementQueueId; |
| 53 ElementQueueId owner() const { return m_owner; } | 53 ElementQueueId owner() const { return m_owner; } |
| 54 | 54 |
| 55 void setOwner(ElementQueueId newOwner) | 55 void setOwner(ElementQueueId newOwner) |
| 56 { | 56 { |
| 57 // ElementCallbackQueues only migrate towards the top of the | 57 // ElementCallbackQueues only migrate towards the top of the |
| (...skipping 15 matching lines...) Expand all Loading... |
| 73 RefPtr<Element> m_element; | 73 RefPtr<Element> m_element; |
| 74 Vector<OwnPtr<CustomElementProcessingStep> > m_queue; | 74 Vector<OwnPtr<CustomElementProcessingStep> > m_queue; |
| 75 ElementQueueId m_owner; | 75 ElementQueueId m_owner; |
| 76 size_t m_index; | 76 size_t m_index; |
| 77 bool m_inCreatedCallback; | 77 bool m_inCreatedCallback; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } | 80 } |
| 81 | 81 |
| 82 #endif // CustomElementCallbackQueue_h | 82 #endif // CustomElementCallbackQueue_h |
| OLD | NEW |