| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DisplayItemClient_h | 5 #ifndef DisplayItemClient_h |
| 6 #define DisplayItemClient_h | 6 #define DisplayItemClient_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/geometry/LayoutRect.h" | 9 #include "platform/geometry/LayoutRect.h" |
| 10 #include "wtf/text/WTFString.h" | 10 #include "wtf/text/WTFString.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #if ENABLE(ASSERT) | 21 #if ENABLE(ASSERT) |
| 22 DisplayItemClient(); | 22 DisplayItemClient(); |
| 23 virtual ~DisplayItemClient(); | 23 virtual ~DisplayItemClient(); |
| 24 #else | 24 #else |
| 25 virtual ~DisplayItemClient() { } | 25 virtual ~DisplayItemClient() { } |
| 26 #endif | 26 #endif |
| 27 | 27 |
| 28 virtual String debugName() const = 0; | 28 virtual String debugName() const = 0; |
| 29 | 29 |
| 30 // The visual rect of this DisplayItemClient, in object space of the object
that owns the GraphicsLayer, i.e. | 30 // The visual rect of this DisplayItemClient, in object space of the object
that owns the GraphicsLayer, i.e. |
| 31 // offset by offsetFromLayoutObjectPlusSubpixelAccumulation(). | 31 // offset by offsetFromLayoutObjectWithSubpixelAccumulation(). |
| 32 virtual LayoutRect visualRect() const = 0; | 32 virtual LayoutRect visualRect() const = 0; |
| 33 | 33 |
| 34 #if ENABLE(ASSERT) | 34 #if ENABLE(ASSERT) |
| 35 // Tests if a DisplayItemClient object has been created and has not been del
eted yet. | 35 // Tests if a DisplayItemClient object has been created and has not been del
eted yet. |
| 36 static bool isAlive(const DisplayItemClient&); | 36 static bool isAlive(const DisplayItemClient&); |
| 37 #endif | 37 #endif |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 inline bool operator==(const DisplayItemClient& client1, const DisplayItemClient
& client2) { return &client1 == &client2; } | 40 inline bool operator==(const DisplayItemClient& client1, const DisplayItemClient
& client2) { return &client1 == &client2; } |
| 41 inline bool operator!=(const DisplayItemClient& client1, const DisplayItemClient
& client2) { return &client1 != &client2; } | 41 inline bool operator!=(const DisplayItemClient& client1, const DisplayItemClient
& client2) { return &client1 != &client2; } |
| 42 | 42 |
| 43 } // namespace blink | 43 } // namespace blink |
| 44 | 44 |
| 45 #endif // DisplayItemClient_h | 45 #endif // DisplayItemClient_h |
| OLD | NEW |