Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: Source/core/html/canvas/WebGLContextAttributes.h

Issue 131973002: Update HTML canvas classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, 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 16 matching lines...) Expand all
27 #ifndef WebGLContextAttributes_h 27 #ifndef WebGLContextAttributes_h
28 #define WebGLContextAttributes_h 28 #define WebGLContextAttributes_h
29 29
30 #include "bindings/v8/ScriptWrappable.h" 30 #include "bindings/v8/ScriptWrappable.h"
31 #include "core/html/canvas/CanvasContextAttributes.h" 31 #include "core/html/canvas/CanvasContextAttributes.h"
32 #include "public/platform/WebGraphicsContext3D.h" 32 #include "public/platform/WebGraphicsContext3D.h"
33 #include "wtf/PassRefPtr.h" 33 #include "wtf/PassRefPtr.h"
34 34
35 namespace WebCore { 35 namespace WebCore {
36 36
37 class WebGLContextAttributes : public CanvasContextAttributes, public ScriptWrap pable { 37 class WebGLContextAttributes FINAL : public CanvasContextAttributes, public Scri ptWrappable {
38 public: 38 public:
39 virtual ~WebGLContextAttributes(); 39 virtual ~WebGLContextAttributes();
40 40
41 // Create a new attributes object 41 // Create a new attributes object
42 static PassRefPtr<WebGLContextAttributes> create(); 42 static PassRefPtr<WebGLContextAttributes> create();
43 43
44 // Create a new attributes object initialized with preexisting attributes 44 // Create a new attributes object initialized with preexisting attributes
45 static PassRefPtr<WebGLContextAttributes> create(blink::WebGraphicsContext3D ::Attributes); 45 static PassRefPtr<WebGLContextAttributes> create(blink::WebGraphicsContext3D ::Attributes);
46 46
47 // Whether or not the drawing buffer has an alpha channel; default=true 47 // Whether or not the drawing buffer has an alpha channel; default=true
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 WebGLContextAttributes(blink::WebGraphicsContext3D::Attributes); 85 WebGLContextAttributes(blink::WebGraphicsContext3D::Attributes);
86 86
87 private: 87 private:
88 blink::WebGraphicsContext3D::Attributes m_attrs; 88 blink::WebGraphicsContext3D::Attributes m_attrs;
89 bool m_preserveDrawingBuffer; 89 bool m_preserveDrawingBuffer;
90 }; 90 };
91 91
92 } // namespace WebCore 92 } // namespace WebCore
93 93
94 #endif // WebGLContextAttributes_h 94 #endif // WebGLContextAttributes_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698