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

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

Issue 2375363002: cc/blimp: Set up the framework for state serialization. (Closed)
Patch Set: test update Created 4 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/picture_layer_unittest.cc ('k') | cc/layers/solid_color_scrollbar_layer.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SOLID_COLOR_SCROLLBAR_LAYER_H_ 5 #ifndef CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_
6 #define CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_ 6 #define CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/layers/layer.h" 10 #include "cc/layers/layer.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 protected: 43 protected:
44 SolidColorScrollbarLayer(ScrollbarOrientation orientation, 44 SolidColorScrollbarLayer(ScrollbarOrientation orientation,
45 int thumb_thickness, 45 int thumb_thickness,
46 int track_start, 46 int track_start,
47 bool is_left_side_vertical_scrollbar, 47 bool is_left_side_vertical_scrollbar,
48 int scroll_layer_id); 48 int scroll_layer_id);
49 ~SolidColorScrollbarLayer() override; 49 ~SolidColorScrollbarLayer() override;
50 50
51 // Layer overrides for proto conversions. 51 // Layer overrides for proto conversions.
52 void SetTypeForProtoSerialization(proto::LayerNode* proto) const override; 52 void SetTypeForProtoSerialization(proto::LayerNode* proto) const override;
53 void LayerSpecificPropertiesToProto(proto::LayerProperties* proto) override; 53 void LayerSpecificPropertiesToProto(proto::LayerProperties* proto,
54 bool inputs_only) override;
54 void FromLayerSpecificPropertiesProto( 55 void FromLayerSpecificPropertiesProto(
55 const proto::LayerProperties& proto) override; 56 const proto::LayerProperties& proto) override;
56 57
57 private: 58 private:
58 friend class LayerSerializationTest; 59 friend class LayerSerializationTest;
59 60
60 // Encapsulate all data, callbacks, interfaces received from the embedder. 61 // Encapsulate all data, callbacks, interfaces received from the embedder.
61 struct SolidColorScrollbarLayerInputs { 62 struct SolidColorScrollbarLayerInputs {
62 SolidColorScrollbarLayerInputs(ScrollbarOrientation orientation, 63 SolidColorScrollbarLayerInputs(ScrollbarOrientation orientation,
63 int thumb_thickness, 64 int thumb_thickness,
(...skipping 10 matching lines...) Expand all
74 }; 75 };
75 76
76 SolidColorScrollbarLayerInputs solid_color_scrollbar_layer_inputs_; 77 SolidColorScrollbarLayerInputs solid_color_scrollbar_layer_inputs_;
77 78
78 DISALLOW_COPY_AND_ASSIGN(SolidColorScrollbarLayer); 79 DISALLOW_COPY_AND_ASSIGN(SolidColorScrollbarLayer);
79 }; 80 };
80 81
81 } // namespace cc 82 } // namespace cc
82 83
83 #endif // CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_ 84 #endif // CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_unittest.cc ('k') | cc/layers/solid_color_scrollbar_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698