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

Side by Side Diff: cc/test/fake_web_scrollbar.h

Issue 15294018: Limit size of scaled layer rects in ScrollbarLayer to content_bounds(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to fix merge conflict. Created 7 years, 7 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/layers/scrollbar_layer_unittest.cc ('k') | cc/test/fake_web_scrollbar.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_TEST_FAKE_WEB_SCROLLBAR_H_ 5 #ifndef CC_TEST_FAKE_WEB_SCROLLBAR_H_
6 #define CC_TEST_FAKE_WEB_SCROLLBAR_H_ 6 #define CC_TEST_FAKE_WEB_SCROLLBAR_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbar.h" 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbar.h"
10 10
(...skipping 20 matching lines...) Expand all
31 virtual void getTickmarks( 31 virtual void getTickmarks(
32 WebKit::WebVector<WebKit::WebRect>& tickmarks /* NOLINT */) const 32 WebKit::WebVector<WebKit::WebRect>& tickmarks /* NOLINT */) const
33 OVERRIDE {} 33 OVERRIDE {}
34 virtual ScrollbarControlSize controlSize() const OVERRIDE; 34 virtual ScrollbarControlSize controlSize() const OVERRIDE;
35 virtual ScrollbarPart pressedPart() const OVERRIDE; 35 virtual ScrollbarPart pressedPart() const OVERRIDE;
36 virtual ScrollbarPart hoveredPart() const OVERRIDE; 36 virtual ScrollbarPart hoveredPart() const OVERRIDE;
37 virtual ScrollbarOverlayStyle scrollbarOverlayStyle() const OVERRIDE; 37 virtual ScrollbarOverlayStyle scrollbarOverlayStyle() const OVERRIDE;
38 virtual bool isCustomScrollbar() const OVERRIDE; 38 virtual bool isCustomScrollbar() const OVERRIDE;
39 virtual Orientation orientation() const OVERRIDE; 39 virtual Orientation orientation() const OVERRIDE;
40 40
41 void SetLocation(const WebKit::WebPoint& location);
42
41 private: 43 private:
42 FakeWebScrollbar(); 44 FakeWebScrollbar();
43 45
44 bool is_overlay_; 46 bool is_overlay_;
47 WebKit::WebPoint location_;
45 }; 48 };
46 49
47 } // namespace cc 50 } // namespace cc
48 51
49 #endif // CC_TEST_FAKE_WEB_SCROLLBAR_H_ 52 #endif // CC_TEST_FAKE_WEB_SCROLLBAR_H_
OLDNEW
« no previous file with comments | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/test/fake_web_scrollbar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698