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

Side by Side Diff: webkit/compositor_bindings/web_nine_patch_layer_impl.cc

Issue 11824010: Normalize includes in webkit/compositor_bindings to chromium style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "web_nine_patch_layer_impl.h" 5 #include "webkit/compositor_bindings/web_nine_patch_layer_impl.h"
6 6
7 #include "cc/nine_patch_layer.h" 7 #include "cc/nine_patch_layer.h"
8 #include "third_party/skia/include/core/SkBitmap.h"
8 #include "ui/gfx/rect.h" 9 #include "ui/gfx/rect.h"
9 #include "web_layer_impl.h" 10 #include "webkit/compositor_bindings/web_layer_impl.h"
10 #include "SkBitmap.h"
11 11
12 using cc::NinePatchLayer; 12 using cc::NinePatchLayer;
13 13
14 namespace WebKit { 14 namespace WebKit {
15 15
16 WebNinePatchLayerImpl::WebNinePatchLayerImpl() 16 WebNinePatchLayerImpl::WebNinePatchLayerImpl()
17 : m_layer(new WebLayerImpl(NinePatchLayer::create())) 17 : m_layer(new WebLayerImpl(NinePatchLayer::create()))
18 { 18 {
19 m_layer->layer()->setIsDrawable(true); 19 m_layer->layer()->setIsDrawable(true);
20 } 20 }
21 21
22 WebNinePatchLayerImpl::~WebNinePatchLayerImpl() 22 WebNinePatchLayerImpl::~WebNinePatchLayerImpl()
23 { 23 {
24 } 24 }
25 25
26 WebLayer* WebNinePatchLayerImpl::layer() 26 WebLayer* WebNinePatchLayerImpl::layer()
27 { 27 {
28 return m_layer.get(); 28 return m_layer.get();
29 } 29 }
30 30
31 void WebNinePatchLayerImpl::setBitmap(const SkBitmap& bitmap, const WebRect& ape rture) { 31 void WebNinePatchLayerImpl::setBitmap(const SkBitmap& bitmap, const WebRect& ape rture) {
32 static_cast<NinePatchLayer*>(m_layer->layer())->setBitmap(bitmap, gfx::Rect( aperture)); 32 static_cast<NinePatchLayer*>(m_layer->layer())->setBitmap(bitmap, gfx::Rect( aperture));
33 } 33 }
34 34
35 } // namespace WebKit 35 } // namespace WebKit
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_nine_patch_layer_impl.h ('k') | webkit/compositor_bindings/web_scrollbar_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698