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

Side by Side Diff: cc/layers/nine_patch_layer_impl.h

Issue 628443002: replace OVERRIDE and FINAL with override and final in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 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 unified diff | Download patch
« no previous file with comments | « cc/layers/nine_patch_layer.h ('k') | cc/layers/painted_scrollbar_layer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CC_LAYERS_NINE_PATCH_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_NINE_PATCH_LAYER_IMPL_H_
6 #define CC_LAYERS_NINE_PATCH_LAYER_IMPL_H_ 6 #define CC_LAYERS_NINE_PATCH_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // 51 //
52 // |image_bounds| = (W, H) 52 // |image_bounds| = (W, H)
53 // |image_aperture| = (X, Y, P, Q) 53 // |image_aperture| = (X, Y, P, Q)
54 // |border| = (A, C, A + B, C + D) 54 // |border| = (A, C, A + B, C + D)
55 // |fill_center| indicates whether to draw the center quad or not. 55 // |fill_center| indicates whether to draw the center quad or not.
56 void SetLayout(const gfx::Rect& image_aperture, 56 void SetLayout(const gfx::Rect& image_aperture,
57 const gfx::Rect& border, 57 const gfx::Rect& border,
58 bool fill_center); 58 bool fill_center);
59 59
60 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) 60 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl)
61 OVERRIDE; 61 override;
62 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; 62 virtual void PushPropertiesTo(LayerImpl* layer) override;
63 63
64 virtual void AppendQuads(RenderPass* render_pass, 64 virtual void AppendQuads(RenderPass* render_pass,
65 const OcclusionTracker<LayerImpl>& occlusion_tracker, 65 const OcclusionTracker<LayerImpl>& occlusion_tracker,
66 AppendQuadsData* append_quads_data) OVERRIDE; 66 AppendQuadsData* append_quads_data) override;
67 67
68 virtual base::DictionaryValue* LayerTreeAsJson() const OVERRIDE; 68 virtual base::DictionaryValue* LayerTreeAsJson() const override;
69 69
70 protected: 70 protected:
71 NinePatchLayerImpl(LayerTreeImpl* tree_impl, int id); 71 NinePatchLayerImpl(LayerTreeImpl* tree_impl, int id);
72 72
73 private: 73 private:
74 virtual const char* LayerTypeAsString() const OVERRIDE; 74 virtual const char* LayerTypeAsString() const override;
75 75
76 void CheckGeometryLimitations(); 76 void CheckGeometryLimitations();
77 77
78 // The transparent center region that shows the parent layer's contents in 78 // The transparent center region that shows the parent layer's contents in
79 // image space. 79 // image space.
80 gfx::Rect image_aperture_; 80 gfx::Rect image_aperture_;
81 81
82 // An inset border that the patches will be mapped to. 82 // An inset border that the patches will be mapped to.
83 gfx::Rect border_; 83 gfx::Rect border_;
84 84
85 bool fill_center_; 85 bool fill_center_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(NinePatchLayerImpl); 87 DISALLOW_COPY_AND_ASSIGN(NinePatchLayerImpl);
88 }; 88 };
89 89
90 } // namespace cc 90 } // namespace cc
91 91
92 #endif // CC_LAYERS_NINE_PATCH_LAYER_IMPL_H_ 92 #endif // CC_LAYERS_NINE_PATCH_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/nine_patch_layer.h ('k') | cc/layers/painted_scrollbar_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698