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

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

Issue 189523002: Ignore setNeedsDisplay for SolidColorScrollbarLayer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | 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 "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/layers/layer.h" 9 #include "cc/layers/layer.h"
10 #include "cc/layers/scrollbar_layer_interface.h" 10 #include "cc/layers/scrollbar_layer_interface.h"
(...skipping 12 matching lines...) Expand all
23 bool is_left_side_vertical_scrollbar, 23 bool is_left_side_vertical_scrollbar,
24 int scroll_layer_id); 24 int scroll_layer_id);
25 25
26 // Layer overrides. 26 // Layer overrides.
27 virtual bool OpacityCanAnimateOnImplThread() const OVERRIDE; 27 virtual bool OpacityCanAnimateOnImplThread() const OVERRIDE;
28 virtual ScrollbarLayerInterface* ToScrollbarLayer() OVERRIDE; 28 virtual ScrollbarLayerInterface* ToScrollbarLayer() OVERRIDE;
29 29
30 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; 30 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE;
31 virtual void PushScrollClipPropertiesTo(LayerImpl* layer) OVERRIDE; 31 virtual void PushScrollClipPropertiesTo(LayerImpl* layer) OVERRIDE;
32 32
33 virtual void SetNeedsDisplayRect(const gfx::RectF&) OVERRIDE;
34
33 // ScrollbarLayerInterface 35 // ScrollbarLayerInterface
34 virtual int ScrollLayerId() const OVERRIDE; 36 virtual int ScrollLayerId() const OVERRIDE;
35 virtual void SetScrollLayer(int layer_id) OVERRIDE; 37 virtual void SetScrollLayer(int layer_id) OVERRIDE;
36 virtual void SetClipLayer(int layer_id) OVERRIDE; 38 virtual void SetClipLayer(int layer_id) OVERRIDE;
37 39
38 virtual ScrollbarOrientation orientation() const OVERRIDE; 40 virtual ScrollbarOrientation orientation() const OVERRIDE;
39 41
40 protected: 42 protected:
41 SolidColorScrollbarLayer(ScrollbarOrientation orientation, 43 SolidColorScrollbarLayer(ScrollbarOrientation orientation,
42 int thumb_thickness, 44 int thumb_thickness,
43 bool is_left_side_vertical_scrollbar, 45 bool is_left_side_vertical_scrollbar,
44 int scroll_layer_id); 46 int scroll_layer_id);
45 virtual ~SolidColorScrollbarLayer(); 47 virtual ~SolidColorScrollbarLayer();
46 48
47 private: 49 private:
48 int scroll_layer_id_; 50 int scroll_layer_id_;
49 int clip_layer_id_; 51 int clip_layer_id_;
50 ScrollbarOrientation orientation_; 52 ScrollbarOrientation orientation_;
51 int thumb_thickness_; 53 int thumb_thickness_;
52 bool is_left_side_vertical_scrollbar_; 54 bool is_left_side_vertical_scrollbar_;
53 55
54 DISALLOW_COPY_AND_ASSIGN(SolidColorScrollbarLayer); 56 DISALLOW_COPY_AND_ASSIGN(SolidColorScrollbarLayer);
55 }; 57 };
56 58
57 } // namespace cc 59 } // namespace cc
58 60
59 #endif // CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_ 61 #endif // CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/solid_color_scrollbar_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698