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

Unified Diff: webkit/compositor_bindings/WebDecorationLayerImpl.h

Issue 10963056: [cc] Add window decoration layers (NinePatch) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: hacky rebase for Jerome to use Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/cc.gyp ('k') | webkit/compositor_bindings/WebDecorationLayerImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/compositor_bindings/WebDecorationLayerImpl.h
diff --git a/webkit/compositor_bindings/WebDecorationLayerImpl.h b/webkit/compositor_bindings/WebDecorationLayerImpl.h
new file mode 100644
index 0000000000000000000000000000000000000000..898d321b503f58616a1e90372e48a5d37d29b02c
--- /dev/null
+++ b/webkit/compositor_bindings/WebDecorationLayerImpl.h
@@ -0,0 +1,31 @@
+// Copyright 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebDecorationLayerImpl_h
+#define WebDecorationLayerImpl_h
+
+#include <public/WebDecorationLayer.h>
+#include <wtf/OwnPtr.h>
+
+namespace WebKit {
+
+class WebLayerImpl;
+
+class WebDecorationLayerImpl : public WebDecorationLayer {
+public:
+ WebDecorationLayerImpl();
+ virtual ~WebDecorationLayerImpl();
+
+ // WebDecorationLayer implementation.
+ virtual WebLayer* layer() OVERRIDE;
+
+ virtual void setBitmap(const SkBitmap& bitmap, const WebRect& aperture) OVERRIDE;
+
+private:
+ OwnPtr<WebLayerImpl> m_layer;
+};
+
+} // namespace WebKit
+
+#endif // WebDecorationLayerImpl_h
« no previous file with comments | « cc/cc.gyp ('k') | webkit/compositor_bindings/WebDecorationLayerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698