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

Side by Side Diff: cc/scrollbar_layer_impl.h

Issue 11276060: Pass accurate contentsScale to LayerImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 1 month 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 | « cc/scrollbar_layer.cc ('k') | cc/scrollbar_layer_impl.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 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 CCScrollbarLayerImpl_h 5 #ifndef CCScrollbarLayerImpl_h
6 #define CCScrollbarLayerImpl_h 6 #define CCScrollbarLayerImpl_h
7 7
8 #include "cc/layer_impl.h" 8 #include "cc/layer_impl.h"
9 #include "cc/scrollbar_geometry_fixed_thumb.h" 9 #include "cc/scrollbar_geometry_fixed_thumb.h"
10 #include <public/WebRect.h> 10 #include <public/WebRect.h>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual WebScrollbar::Orientation orientation() const; 70 virtual WebScrollbar::Orientation orientation() const;
71 virtual bool isCustomScrollbar() const; 71 virtual bool isCustomScrollbar() const;
72 72
73 private: 73 private:
74 ScrollbarLayerImpl* m_owner; 74 ScrollbarLayerImpl* m_owner;
75 75
76 }; 76 };
77 77
78 virtual const char* layerTypeAsString() const OVERRIDE; 78 virtual const char* layerTypeAsString() const OVERRIDE;
79 79
80 IntRect scrollbarLayerRectToContentRect(const WebKit::WebRect& layerRect) co nst;
81
80 Scrollbar m_scrollbar; 82 Scrollbar m_scrollbar;
81 83
82 ResourceProvider::ResourceId m_backTrackResourceId; 84 ResourceProvider::ResourceId m_backTrackResourceId;
83 ResourceProvider::ResourceId m_foreTrackResourceId; 85 ResourceProvider::ResourceId m_foreTrackResourceId;
84 ResourceProvider::ResourceId m_thumbResourceId; 86 ResourceProvider::ResourceId m_thumbResourceId;
85 87
86 scoped_ptr<ScrollbarGeometryFixedThumb> m_geometry; 88 scoped_ptr<ScrollbarGeometryFixedThumb> m_geometry;
87 89
88 // Data to implement Scrollbar 90 // Data to implement Scrollbar
89 WebKit::WebScrollbar::ScrollbarOverlayStyle m_scrollbarOverlayStyle; 91 WebKit::WebScrollbar::ScrollbarOverlayStyle m_scrollbarOverlayStyle;
90 WebKit::WebVector<WebKit::WebRect> m_tickmarks; 92 WebKit::WebVector<WebKit::WebRect> m_tickmarks;
91 WebKit::WebScrollbar::Orientation m_orientation; 93 WebKit::WebScrollbar::Orientation m_orientation;
92 WebKit::WebScrollbar::ScrollbarControlSize m_controlSize; 94 WebKit::WebScrollbar::ScrollbarControlSize m_controlSize;
93 WebKit::WebScrollbar::ScrollbarPart m_pressedPart; 95 WebKit::WebScrollbar::ScrollbarPart m_pressedPart;
94 WebKit::WebScrollbar::ScrollbarPart m_hoveredPart; 96 WebKit::WebScrollbar::ScrollbarPart m_hoveredPart;
95 97
96 float m_currentPos; 98 float m_currentPos;
97 int m_totalSize; 99 int m_totalSize;
98 int m_maximum; 100 int m_maximum;
99 101
100 bool m_isScrollableAreaActive; 102 bool m_isScrollableAreaActive;
101 bool m_isScrollViewScrollbar; 103 bool m_isScrollViewScrollbar;
102 bool m_enabled; 104 bool m_enabled;
103 bool m_isCustomScrollbar; 105 bool m_isCustomScrollbar;
104 bool m_isOverlayScrollbar; 106 bool m_isOverlayScrollbar;
105 }; 107 };
106 108
107 } 109 }
108 #endif 110 #endif
OLDNEW
« no previous file with comments | « cc/scrollbar_layer.cc ('k') | cc/scrollbar_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698