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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 class LayerRectList final : public GarbageCollected<LayerRectList>, public Scrip
tWrappable { | 46 class LayerRectList final : public GarbageCollected<LayerRectList>, public Scrip
tWrappable { |
47 DEFINE_WRAPPERTYPEINFO(); | 47 DEFINE_WRAPPERTYPEINFO(); |
48 public: | 48 public: |
49 static LayerRectList* create() | 49 static LayerRectList* create() |
50 { | 50 { |
51 return new LayerRectList; | 51 return new LayerRectList; |
52 } | 52 } |
53 | 53 |
54 unsigned length() const; | 54 unsigned length() const; |
55 LayerRect* item(unsigned index); | 55 LayerRect* item(unsigned index); |
56 void append(PassRefPtrWillBeRawPtr<Node> layerAssociatedNode, const String&
layerName, int layerOffsetX, int layerOffsetY, PassRefPtrWillBeRawPtr<ClientRect
> layerRelativeRect); | 56 void append(PassRefPtrWillBeRawPtr<Node> layerAssociatedNode, const String&
layerName, int layerOffsetX, int layerOffsetY, ClientRect* layerRelativeRect); |
57 | 57 |
58 DECLARE_TRACE(); | 58 DECLARE_TRACE(); |
59 | 59 |
60 private: | 60 private: |
61 LayerRectList(); | 61 LayerRectList(); |
62 | 62 |
63 HeapVector<Member<LayerRect>> m_list; | 63 HeapVector<Member<LayerRect>> m_list; |
64 }; | 64 }; |
65 | 65 |
66 } // namespace blink | 66 } // namespace blink |
67 | 67 |
68 #endif // ClientRectList_h | 68 #endif // ClientRectList_h |
OLD | NEW |