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

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

Issue 1497873002: Make DisplayItemClient an interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 21 matching lines...) Expand all
32 #include "platform/geometry/IntSize.h" 32 #include "platform/geometry/IntSize.h"
33 #include "platform/graphics/paint/DisplayItemClient.h" 33 #include "platform/graphics/paint/DisplayItemClient.h"
34 #include "platform/scroll/ScrollTypes.h" 34 #include "platform/scroll/ScrollTypes.h"
35 #include "wtf/PassOwnPtr.h" 35 #include "wtf/PassOwnPtr.h"
36 #include "wtf/Vector.h" 36 #include "wtf/Vector.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class Widget; 40 class Widget;
41 41
42 class PLATFORM_EXPORT ScrollbarThemeClient { 42 class PLATFORM_EXPORT ScrollbarThemeClient : public DisplayItemClient {
43 public: 43 public:
44 virtual int x() const = 0; 44 virtual int x() const = 0;
45 virtual int y() const = 0; 45 virtual int y() const = 0;
46 virtual int width() const = 0; 46 virtual int width() const = 0;
47 virtual int height() const = 0; 47 virtual int height() const = 0;
48 virtual IntSize size() const = 0; 48 virtual IntSize size() const = 0;
49 virtual IntPoint location() const = 0; 49 virtual IntPoint location() const = 0;
50 50
51 virtual Widget* parent() const = 0; 51 virtual Widget* parent() const = 0;
52 virtual Widget* root() const = 0; 52 virtual Widget* root() const = 0;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 virtual void setIsAlphaLocked(bool) = 0; 89 virtual void setIsAlphaLocked(bool) = 0;
90 90
91 virtual float elasticOverscroll() const = 0; 91 virtual float elasticOverscroll() const = 0;
92 virtual void setElasticOverscroll(float) = 0; 92 virtual void setElasticOverscroll(float) = 0;
93 93
94 virtual bool trackNeedsRepaint() const = 0; 94 virtual bool trackNeedsRepaint() const = 0;
95 virtual void setTrackNeedsRepaint(bool) = 0; 95 virtual void setTrackNeedsRepaint(bool) = 0;
96 virtual bool thumbNeedsRepaint() const = 0; 96 virtual bool thumbNeedsRepaint() const = 0;
97 virtual void setThumbNeedsRepaint(bool) = 0; 97 virtual void setThumbNeedsRepaint(bool) = 0;
98 98
99 virtual DisplayItemClient displayItemClient() const = 0;
100 virtual String debugName() const = 0;
101
102 protected: 99 protected:
103 virtual ~ScrollbarThemeClient() { } 100 virtual ~ScrollbarThemeClient() { }
104 }; 101 };
105 102
106 } // namespace blink 103 } // namespace blink
107 104
108 #endif // ScollbarThemeClient_h 105 #endif // ScollbarThemeClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/ScrollbarTheme.cpp ('k') | third_party/WebKit/Source/web/PageOverlay.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698