| 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 class WebGraphicsLayerDebugInfo; | 38 class WebGraphicsLayerDebugInfo; |
| 39 | 39 |
| 40 class BLINK_PLATFORM_EXPORT WebLayerClient { | 40 class BLINK_PLATFORM_EXPORT WebLayerClient { |
| 41 public: | 41 public: |
| 42 virtual WebString debugName(WebLayer*) = 0; | 42 virtual WebString debugName(WebLayer*) = 0; |
| 43 | 43 |
| 44 // Returns a pointer to a debug info object, if one has been computed. | 44 // Returns a pointer to a debug info object, if one has been computed. |
| 45 // If not, returns 0. If the returned pointer is non-zero, the caller takes | 45 // If not, returns 0. If the returned pointer is non-zero, the caller takes |
| 46 // ownership of the pointer. | 46 // ownership of the pointer. |
| 47 // FIXME: delete this once cc migrates to takeDebugInfoFor. |
| 47 virtual WebGraphicsLayerDebugInfo* takeDebugInfo() = 0; | 48 virtual WebGraphicsLayerDebugInfo* takeDebugInfo() = 0; |
| 48 | 49 |
| 50 // Similar to takeDebugInfo, but returns WebLayer-specific information |
| 51 // (only the debug name for now). |
| 52 virtual WebGraphicsLayerDebugInfo* takeDebugInfoFor(WebLayer*) = 0; |
| 53 |
| 49 protected: | 54 protected: |
| 50 virtual ~WebLayerClient() { } | 55 virtual ~WebLayerClient() { } |
| 51 }; | 56 }; |
| 52 | 57 |
| 53 } // namespace blink | 58 } // namespace blink |
| 54 | 59 |
| 55 #endif // WebLayerClient_h | 60 #endif // WebLayerClient_h |
| 56 | 61 |
| OLD | NEW |