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

Unified Diff: webkit/compositor_bindings/web_nine_patch_layer_impl.h

Issue 11304020: cc: Nine patch layer. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix DCHECK failures and rebase to 166129 Created 8 years, 1 month 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
Index: webkit/compositor_bindings/web_nine_patch_layer_impl.h
diff --git a/webkit/compositor_bindings/web_nine_patch_layer_impl.h b/webkit/compositor_bindings/web_nine_patch_layer_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..02605d8175a3797066f87e2720bdcac2f932cf86
--- /dev/null
+++ b/webkit/compositor_bindings/web_nine_patch_layer_impl.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 WebNinePatchLayerImpl_h
+#define WebNinePatchLayerImpl_h
+
+#include "web_layer_impl.h"
+#include "base/memory/scoped_ptr.h"
+#include "SkBitmap.h"
+
+namespace WebKit {
+
+class WebLayerImpl;
+
+class WebNinePatchLayerImpl {
+public:
+ WebNinePatchLayerImpl();
+ virtual ~WebNinePatchLayerImpl();
+
+ WebLayer* layer();
+
+ void setBitmap(const SkBitmap& bitmap, const WebRect& aperture);
+
+private:
+ scoped_ptr<WebLayerImpl> m_layer;
+};
+
+} // namespace WebKit
+
+#endif
« no previous file with comments | « webkit/compositor_bindings/compositor_bindings.gyp ('k') | webkit/compositor_bindings/web_nine_patch_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698