| 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 * * Redistributions of source code must retain the above copyright | 7 * * Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * * Redistributions in binary form must reproduce the above | 9 * * Redistributions in binary form must reproduce the above |
| 10 * copyright notice, this list of conditions and the following disclaimer | 10 * copyright notice, this list of conditions and the following disclaimer |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 DiscardableStorage | 39 DiscardableStorage |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 class Canvas2DContextAttributes : public CanvasContextAttributes, public ScriptW
rappable { | 42 class Canvas2DContextAttributes : public CanvasContextAttributes, public ScriptW
rappable { |
| 43 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(Canvas2DContextAttributes); | 43 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(Canvas2DContextAttributes); |
| 44 DEFINE_WRAPPERTYPEINFO(); | 44 DEFINE_WRAPPERTYPEINFO(); |
| 45 public: | 45 public: |
| 46 // Create a new attributes object | 46 // Create a new attributes object |
| 47 static PassRefPtr<Canvas2DContextAttributes> create(); | 47 static PassRefPtr<Canvas2DContextAttributes> create(); |
| 48 | 48 |
| 49 // Whether or not the drawing buffer has an alpha channel; default=true | |
| 50 bool alpha() const; | |
| 51 void setAlpha(bool); | |
| 52 | |
| 53 String storage() const; | 49 String storage() const; |
| 54 void setStorage(const String&); | 50 void setStorage(const String&); |
| 55 Canvas2DContextStorage parsedStorage() const; | 51 Canvas2DContextStorage parsedStorage() const; |
| 56 | 52 |
| 57 protected: | 53 protected: |
| 58 Canvas2DContextAttributes(); | 54 Canvas2DContextAttributes(); |
| 59 | 55 |
| 60 bool m_alpha; | |
| 61 Canvas2DContextStorage m_storage; | 56 Canvas2DContextStorage m_storage; |
| 62 }; | 57 }; |
| 63 | 58 |
| 64 } // namespace blink | 59 } // namespace blink |
| 65 | 60 |
| 66 #endif // Canvas2DContextAttributes_h | 61 #endif // Canvas2DContextAttributes_h |
| OLD | NEW |