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

Side by Side Diff: third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.h

Issue 2478743003: add Tickmarks to aura overlay scrollbar (Closed)
Patch Set: add Tickmarks to aura overlay scrollbar Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2009, Google Inc. All rights reserved. 2 * Copyright (c) 2009, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 21 matching lines...) Expand all
32 #define ScrollbarThemeAura_h 32 #define ScrollbarThemeAura_h
33 33
34 #include "base/gtest_prod_util.h" 34 #include "base/gtest_prod_util.h"
35 #include "platform/scroll/ScrollbarTheme.h" 35 #include "platform/scroll/ScrollbarTheme.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class PLATFORM_EXPORT ScrollbarThemeAura : public ScrollbarTheme { 39 class PLATFORM_EXPORT ScrollbarThemeAura : public ScrollbarTheme {
40 public: 40 public:
41 int scrollbarThickness(ScrollbarControlSize) override; 41 int scrollbarThickness(ScrollbarControlSize) override;
42 static void paintAuraTickmarks(GraphicsContext&,
bokan 2016/11/04 19:46:25 Lets just move this implementation into ScrollbarT
43 const Scrollbar&,
44 const IntRect&);
42 45
43 protected: 46 protected:
44 bool hasButtons(const ScrollbarThemeClient&) override { return true; } 47 bool hasButtons(const ScrollbarThemeClient&) override { return true; }
45 bool hasThumb(const ScrollbarThemeClient&) override; 48 bool hasThumb(const ScrollbarThemeClient&) override;
46 49
47 IntRect backButtonRect(const ScrollbarThemeClient&, 50 IntRect backButtonRect(const ScrollbarThemeClient&,
48 ScrollbarPart, 51 ScrollbarPart,
49 bool painting = false) override; 52 bool painting = false) override;
50 IntRect forwardButtonRect(const ScrollbarThemeClient&, 53 IntRect forwardButtonRect(const ScrollbarThemeClient&,
51 ScrollbarPart, 54 ScrollbarPart,
(...skipping 29 matching lines...) Expand all
81 FRIEND_TEST_ALL_PREFIXES(ScrollbarThemeAuraTest, ButtonSizeVertical); 84 FRIEND_TEST_ALL_PREFIXES(ScrollbarThemeAuraTest, ButtonSizeVertical);
82 FRIEND_TEST_ALL_PREFIXES(ScrollbarThemeAuraTest, NoButtonsReturnsSize0); 85 FRIEND_TEST_ALL_PREFIXES(ScrollbarThemeAuraTest, NoButtonsReturnsSize0);
83 86
84 virtual bool hasScrollbarButtons(ScrollbarOrientation) const; 87 virtual bool hasScrollbarButtons(ScrollbarOrientation) const;
85 IntSize buttonSize(const ScrollbarThemeClient&); 88 IntSize buttonSize(const ScrollbarThemeClient&);
86 }; 89 };
87 90
88 } // namespace blink 91 } // namespace blink
89 92
90 #endif 93 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698