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

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

Issue 1424983002: Invalidate scrollbars when window activity changes if needed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: be forceful about 10.6-only Created 5 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
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 26 matching lines...) Expand all
37 37
38 class CullRect; 38 class CullRect;
39 39
40 class PLATFORM_EXPORT ScrollbarThemeMacNonOverlayAPI : public ScrollbarThemeMacC ommon { 40 class PLATFORM_EXPORT ScrollbarThemeMacNonOverlayAPI : public ScrollbarThemeMacC ommon {
41 public: 41 public:
42 int scrollbarThickness(ScrollbarControlSize = RegularScrollbar) override; 42 int scrollbarThickness(ScrollbarControlSize = RegularScrollbar) override;
43 bool usesOverlayScrollbars() const override { return false; } 43 bool usesOverlayScrollbars() const override { return false; }
44 ScrollbarButtonsPlacement buttonsPlacement() const override; 44 ScrollbarButtonsPlacement buttonsPlacement() const override;
45 45
46 bool paint(const ScrollbarThemeClient*, GraphicsContext*, const CullRect&) o verride; 46 bool paint(const ScrollbarThemeClient*, GraphicsContext*, const CullRect&) o verride;
47 bool invalidateOnWindowActiveChange() const override { return true; }
47 48
48 protected: 49 protected:
49 IntRect trackRect(const ScrollbarThemeClient*, bool painting = false) overri de; 50 IntRect trackRect(const ScrollbarThemeClient*, bool painting = false) overri de;
50 IntRect backButtonRect(const ScrollbarThemeClient*, ScrollbarPart, bool pain ting = false) override; 51 IntRect backButtonRect(const ScrollbarThemeClient*, ScrollbarPart, bool pain ting = false) override;
51 IntRect forwardButtonRect(const ScrollbarThemeClient*, ScrollbarPart, bool p ainting = false) override; 52 IntRect forwardButtonRect(const ScrollbarThemeClient*, ScrollbarPart, bool p ainting = false) override;
52 53
53 void updateButtonPlacement(ScrollbarButtonsPlacement) override; 54 void updateButtonPlacement(ScrollbarButtonsPlacement) override;
54 55
55 bool hasButtons(const ScrollbarThemeClient*) override; 56 bool hasButtons(const ScrollbarThemeClient*) override;
56 bool hasThumb(const ScrollbarThemeClient*) override; 57 bool hasThumb(const ScrollbarThemeClient*) override;
57 58
58 int minimumThumbLength(const ScrollbarThemeClient*) override; 59 int minimumThumbLength(const ScrollbarThemeClient*) override;
59 }; 60 };
60 61
61 } 62 }
62 63
63 #endif 64 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698