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

Side by Side Diff: cc/scrollbar_layer_impl.h

Issue 11439026: Revert 171403 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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/scoped_resource_unittest.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 CC_SCROLLBAR_LAYER_IMPL_H_ 5 #ifndef CC_SCROLLBAR_LAYER_IMPL_H_
6 #define CC_SCROLLBAR_LAYER_IMPL_H_ 6 #define CC_SCROLLBAR_LAYER_IMPL_H_
7 7
8 #include "cc/cc_export.h" 8 #include "cc/cc_export.h"
9 #include "cc/layer_impl.h" 9 #include "cc/layer_impl.h"
10 #include "cc/scrollbar_geometry_fixed_thumb.h" 10 #include "cc/scrollbar_geometry_fixed_thumb.h"
(...skipping 24 matching lines...) Expand all
35 int totalSize() const { return m_totalSize; } 35 int totalSize() const { return m_totalSize; }
36 void setTotalSize(int totalSize) { m_totalSize = totalSize; } 36 void setTotalSize(int totalSize) { m_totalSize = totalSize; }
37 37
38 int maximum() const { return m_maximum; } 38 int maximum() const { return m_maximum; }
39 void setMaximum(int maximum) { m_maximum = maximum; } 39 void setMaximum(int maximum) { m_maximum = maximum; }
40 40
41 WebKit::WebScrollbar::Orientation orientation() const { return m_orientation ; } 41 WebKit::WebScrollbar::Orientation orientation() const { return m_orientation ; }
42 42
43 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE; 43 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE;
44 44
45 virtual void didLoseOutputSurface() OVERRIDE; 45 virtual void didLoseContext() OVERRIDE;
46 46
47 protected: 47 protected:
48 explicit ScrollbarLayerImpl(int id); 48 explicit ScrollbarLayerImpl(int id);
49 49
50 private: 50 private:
51 // nested class only to avoid namespace problem 51 // nested class only to avoid namespace problem
52 class Scrollbar : public WebKit::WebScrollbar { 52 class Scrollbar : public WebKit::WebScrollbar {
53 public: 53 public:
54 explicit Scrollbar(ScrollbarLayerImpl* owner) : m_owner(owner) { } 54 explicit Scrollbar(ScrollbarLayerImpl* owner) : m_owner(owner) { }
55 55
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 bool m_isScrollableAreaActive; 103 bool m_isScrollableAreaActive;
104 bool m_isScrollViewScrollbar; 104 bool m_isScrollViewScrollbar;
105 bool m_enabled; 105 bool m_enabled;
106 bool m_isCustomScrollbar; 106 bool m_isCustomScrollbar;
107 bool m_isOverlayScrollbar; 107 bool m_isOverlayScrollbar;
108 }; 108 };
109 109
110 } 110 }
111 #endif // CC_SCROLLBAR_LAYER_IMPL_H_ 111 #endif // CC_SCROLLBAR_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/scoped_resource_unittest.cc ('k') | cc/scrollbar_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698