| 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 17 matching lines...) Expand all Loading... |
| 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/scroll/ScrollTypes.h" | 33 #include "platform/scroll/ScrollTypes.h" |
| 34 #include "platform/wtf/Vector.h" | 34 #include "platform/wtf/Vector.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 class FrameViewBase; | |
| 39 | |
| 40 class PLATFORM_EXPORT ScrollbarThemeClient { | 38 class PLATFORM_EXPORT ScrollbarThemeClient { |
| 41 public: | 39 public: |
| 42 virtual int X() const = 0; | 40 virtual int X() const = 0; |
| 43 virtual int Y() const = 0; | 41 virtual int Y() const = 0; |
| 44 virtual int Width() const = 0; | 42 virtual int Width() const = 0; |
| 45 virtual int Height() const = 0; | 43 virtual int Height() const = 0; |
| 46 virtual IntSize Size() const = 0; | 44 virtual IntSize Size() const = 0; |
| 47 virtual IntPoint Location() const = 0; | 45 virtual IntPoint Location() const = 0; |
| 48 | 46 |
| 49 virtual FrameViewBase* Parent() const = 0; | |
| 50 virtual FrameViewBase* Root() const = 0; | |
| 51 | |
| 52 virtual void SetFrameRect(const IntRect&) = 0; | 47 virtual void SetFrameRect(const IntRect&) = 0; |
| 53 virtual IntRect FrameRect() const = 0; | 48 virtual IntRect FrameRect() const = 0; |
| 54 | 49 |
| 55 virtual void Invalidate() = 0; | 50 virtual void Invalidate() = 0; |
| 56 virtual void InvalidateRect(const IntRect&) = 0; | 51 virtual void InvalidateRect(const IntRect&) = 0; |
| 57 | 52 |
| 58 virtual ScrollbarOverlayColorTheme GetScrollbarOverlayColorTheme() const = 0; | 53 virtual ScrollbarOverlayColorTheme GetScrollbarOverlayColorTheme() const = 0; |
| 59 virtual void GetTickmarks(Vector<IntRect>&) const = 0; | 54 virtual void GetTickmarks(Vector<IntRect>&) const = 0; |
| 60 virtual bool IsScrollableAreaActive() const = 0; | 55 virtual bool IsScrollableAreaActive() const = 0; |
| 61 | 56 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 87 virtual float ElasticOverscroll() const = 0; | 82 virtual float ElasticOverscroll() const = 0; |
| 88 virtual void SetElasticOverscroll(float) = 0; | 83 virtual void SetElasticOverscroll(float) = 0; |
| 89 | 84 |
| 90 protected: | 85 protected: |
| 91 virtual ~ScrollbarThemeClient() {} | 86 virtual ~ScrollbarThemeClient() {} |
| 92 }; | 87 }; |
| 93 | 88 |
| 94 } // namespace blink | 89 } // namespace blink |
| 95 | 90 |
| 96 #endif // ScollbarThemeClient_h | 91 #endif // ScollbarThemeClient_h |
| OLD | NEW |