summaryrefslogtreecommitdiffstats
path: root/cc/nine_patch_layer_impl.h
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-08 04:43:17 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-08 04:43:17 +0000
commit37adf94a3925cbac6d8305cadcd30f7848a360c7 (patch)
tree239c1e6fc4496fb6ca0117bb7c59ec6c0c570f2e /cc/nine_patch_layer_impl.h
parent090883b5b677cdf8b1d9040ca09eb99f3732bf70 (diff)
downloadchromium_src-37adf94a3925cbac6d8305cadcd30f7848a360c7.zip
chromium_src-37adf94a3925cbac6d8305cadcd30f7848a360c7.tar.gz
chromium_src-37adf94a3925cbac6d8305cadcd30f7848a360c7.tar.bz2
cc: Chromify the NinePatchLayer classes.
Style-only change. Make the NinePatchLayer and NinePatchLayerImpl classes adopt the chromium style. R=jamesr,enne NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12639004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186890 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/nine_patch_layer_impl.h')
-rw-r--r--cc/nine_patch_layer_impl.h55
1 files changed, 29 insertions, 26 deletions
diff --git a/cc/nine_patch_layer_impl.h b/cc/nine_patch_layer_impl.h
index 8b693ac..d8f0978 100644
--- a/cc/nine_patch_layer_impl.h
+++ b/cc/nine_patch_layer_impl.h
@@ -18,41 +18,44 @@ class DictionaryValue;
namespace cc {
class CC_EXPORT NinePatchLayerImpl : public LayerImpl {
-public:
- static scoped_ptr<NinePatchLayerImpl> create(LayerTreeImpl* treeImpl, int id)
- {
- return make_scoped_ptr(new NinePatchLayerImpl(treeImpl, id));
- }
- virtual ~NinePatchLayerImpl();
+ public:
+ static scoped_ptr<NinePatchLayerImpl> Create(LayerTreeImpl* tree_impl,
+ int id) {
+ return make_scoped_ptr(new NinePatchLayerImpl(tree_impl, id));
+ }
+ virtual ~NinePatchLayerImpl();
- void setResourceId(unsigned id) { m_resourceId = id; }
- void setLayout(const gfx::Size& imageBounds, const gfx::Rect& aperture);
+ void SetResourceId(unsigned id) { resource_id_ = id; }
+ void SetLayout(gfx::Size image_bounds, gfx::Rect aperture);
- virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeImpl* treeImpl) OVERRIDE;
- virtual void pushPropertiesTo(LayerImpl*) OVERRIDE;
+ virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeImpl* tree_impl)
+ OVERRIDE;
+ virtual void pushPropertiesTo(LayerImpl* layer) OVERRIDE;
- virtual void willDraw(ResourceProvider*) OVERRIDE;
- virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE;
- virtual void didDraw(ResourceProvider*) OVERRIDE;
- virtual ResourceProvider::ResourceId contentsResourceId() const OVERRIDE;
- virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE;
- virtual void didLoseOutputSurface() OVERRIDE;
+ virtual void willDraw(ResourceProvider* resource_provider) OVERRIDE;
+ virtual void appendQuads(QuadSink& quad_sink,
+ AppendQuadsData& append_quads_data) OVERRIDE;
+ virtual void didDraw(ResourceProvider* FIXMENAME) OVERRIDE;
+ virtual ResourceProvider::ResourceId contentsResourceId() const OVERRIDE;
+ virtual void dumpLayerProperties(std::string* str, int indent) const OVERRIDE;
+ virtual void didLoseOutputSurface() OVERRIDE;
- virtual base::DictionaryValue* layerTreeAsJson() const OVERRIDE;
+ virtual base::DictionaryValue* layerTreeAsJson() const OVERRIDE;
-protected:
- NinePatchLayerImpl(LayerTreeImpl* treeImpl, int id);
+ protected:
+ NinePatchLayerImpl(LayerTreeImpl* tree_impl, int id);
-private:
- virtual const char* layerTypeAsString() const OVERRIDE;
+ private:
+ virtual const char* layerTypeAsString() const OVERRIDE;
- // The size of the NinePatch bitmap in pixels.
- gfx::Size m_imageBounds;
+ // The size of the NinePatch bitmap in pixels.
+ gfx::Size image_bounds_;
- // The transparent center region that shows the parent layer's contents in image space.
- gfx::Rect m_imageAperture;
+ // The transparent center region that shows the parent layer's contents in
+ // image space.
+ gfx::Rect image_aperture_;
- ResourceProvider::ResourceId m_resourceId;
+ ResourceProvider::ResourceId resource_id_;
};
} // namespace cc