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

Side by Side Diff: cc/ScrollbarLayerChromium.h

Issue 10989003: Revert 158386 - Revert 158362 - Support high DPI scrollbar on top level web frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « cc/LayerChromium.cpp ('k') | cc/ScrollbarLayerChromium.cpp » ('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 5
6 #ifndef ScrollbarLayerChromium_h 6 #ifndef ScrollbarLayerChromium_h
7 #define ScrollbarLayerChromium_h 7 #define ScrollbarLayerChromium_h
8 8
9 #if USE(ACCELERATED_COMPOSITING) 9 #if USE(ACCELERATED_COMPOSITING)
10 10
(...skipping 11 matching lines...) Expand all
22 22
23 class ScrollbarLayerChromium : public LayerChromium { 23 class ScrollbarLayerChromium : public LayerChromium {
24 public: 24 public:
25 virtual PassOwnPtr<CCLayerImpl> createCCLayerImpl() OVERRIDE; 25 virtual PassOwnPtr<CCLayerImpl> createCCLayerImpl() OVERRIDE;
26 26
27 static PassRefPtr<ScrollbarLayerChromium> create(PassOwnPtr<WebKit::WebScrol lbar>, WebKit::WebScrollbarThemePainter, PassOwnPtr<WebKit::WebScrollbarThemeGeo metry>, int scrollLayerId); 27 static PassRefPtr<ScrollbarLayerChromium> create(PassOwnPtr<WebKit::WebScrol lbar>, WebKit::WebScrollbarThemePainter, PassOwnPtr<WebKit::WebScrollbarThemeGeo metry>, int scrollLayerId);
28 28
29 virtual ~ScrollbarLayerChromium(); 29 virtual ~ScrollbarLayerChromium();
30 30
31 // LayerChromium interface 31 // LayerChromium interface
32 virtual bool needsContentsScale() const OVERRIDE;
33 virtual IntSize contentBounds() const OVERRIDE;
32 virtual void setTexturePriorities(const CCPriorityCalculator&) OVERRIDE; 34 virtual void setTexturePriorities(const CCPriorityCalculator&) OVERRIDE;
33 virtual void update(CCTextureUpdateQueue&, const CCOcclusionTracker*, CCRend eringStats&) OVERRIDE; 35 virtual void update(CCTextureUpdateQueue&, const CCOcclusionTracker*, CCRend eringStats&) OVERRIDE;
34 virtual void setLayerTreeHost(CCLayerTreeHost*) OVERRIDE; 36 virtual void setLayerTreeHost(CCLayerTreeHost*) OVERRIDE;
35 virtual void pushPropertiesTo(CCLayerImpl*) OVERRIDE; 37 virtual void pushPropertiesTo(CCLayerImpl*) OVERRIDE;
36 38
37 int scrollLayerId() const { return m_scrollLayerId; } 39 int scrollLayerId() const { return m_scrollLayerId; }
38 void setScrollLayerId(int id) { m_scrollLayerId = id; } 40 void setScrollLayerId(int id) { m_scrollLayerId = id; }
39 41
40 virtual ScrollbarLayerChromium* toScrollbarLayerChromium() OVERRIDE; 42 virtual ScrollbarLayerChromium* toScrollbarLayerChromium() OVERRIDE;
41 43
(...skipping 18 matching lines...) Expand all
60 // All the parts of the scrollbar except the thumb 62 // All the parts of the scrollbar except the thumb
61 OwnPtr<LayerTextureUpdater::Texture> m_backTrack; 63 OwnPtr<LayerTextureUpdater::Texture> m_backTrack;
62 OwnPtr<LayerTextureUpdater::Texture> m_foreTrack; 64 OwnPtr<LayerTextureUpdater::Texture> m_foreTrack;
63 OwnPtr<LayerTextureUpdater::Texture> m_thumb; 65 OwnPtr<LayerTextureUpdater::Texture> m_thumb;
64 }; 66 };
65 67
66 } 68 }
67 #endif // USE(ACCELERATED_COMPOSITING) 69 #endif // USE(ACCELERATED_COMPOSITING)
68 70
69 #endif 71 #endif
OLDNEW
« no previous file with comments | « cc/LayerChromium.cpp ('k') | cc/ScrollbarLayerChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698