| OLD | NEW |
| 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 12 matching lines...) Expand all Loading... |
| 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef ScrollbarThemeClient_h | 26 #ifndef ScrollbarThemeClient_h |
| 27 #define ScrollbarThemeClient_h | 27 #define ScrollbarThemeClient_h |
| 28 | 28 |
| 29 #include "platform/PlatformExport.h" | 29 #include "platform/PlatformExport.h" |
| 30 #include "platform/geometry/IntPoint.h" | 30 #include "platform/geometry/IntPoint.h" |
| 31 #include "platform/geometry/IntRect.h" | 31 #include "platform/geometry/IntRect.h" |
| 32 #include "platform/geometry/IntSize.h" | 32 #include "platform/geometry/IntSize.h" |
| 33 #include "platform/graphics/paint/DisplayItemClient.h" | |
| 34 #include "platform/scroll/ScrollTypes.h" | 33 #include "platform/scroll/ScrollTypes.h" |
| 35 #include "wtf/PassOwnPtr.h" | 34 #include "wtf/PassOwnPtr.h" |
| 36 #include "wtf/Vector.h" | 35 #include "wtf/Vector.h" |
| 37 | 36 |
| 38 namespace blink { | 37 namespace blink { |
| 39 | 38 |
| 40 class Widget; | 39 class Widget; |
| 41 | 40 |
| 42 class PLATFORM_EXPORT ScrollbarThemeClient : public DisplayItemClient { | 41 class PLATFORM_EXPORT ScrollbarThemeClient { |
| 43 public: | 42 public: |
| 44 virtual int x() const = 0; | 43 virtual int x() const = 0; |
| 45 virtual int y() const = 0; | 44 virtual int y() const = 0; |
| 46 virtual int width() const = 0; | 45 virtual int width() const = 0; |
| 47 virtual int height() const = 0; | 46 virtual int height() const = 0; |
| 48 virtual IntSize size() const = 0; | 47 virtual IntSize size() const = 0; |
| 49 virtual IntPoint location() const = 0; | 48 virtual IntPoint location() const = 0; |
| 50 | 49 |
| 51 virtual Widget* parent() const = 0; | 50 virtual Widget* parent() const = 0; |
| 52 virtual Widget* root() const = 0; | 51 virtual Widget* root() const = 0; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 virtual float elasticOverscroll() const = 0; | 87 virtual float elasticOverscroll() const = 0; |
| 89 virtual void setElasticOverscroll(float) = 0; | 88 virtual void setElasticOverscroll(float) = 0; |
| 90 | 89 |
| 91 protected: | 90 protected: |
| 92 virtual ~ScrollbarThemeClient() { } | 91 virtual ~ScrollbarThemeClient() { } |
| 93 }; | 92 }; |
| 94 | 93 |
| 95 } // namespace blink | 94 } // namespace blink |
| 96 | 95 |
| 97 #endif // ScollbarThemeClient_h | 96 #endif // ScollbarThemeClient_h |
| OLD | NEW |