| 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 21 matching lines...) Expand all Loading... |
| 32 #include "wtf/Noncopyable.h" | 32 #include "wtf/Noncopyable.h" |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 // Adapts a WebScrollbar to the ScrollbarThemeClient interface | 36 // Adapts a WebScrollbar to the ScrollbarThemeClient interface |
| 37 class PLATFORM_EXPORT WebScrollbarThemeClientImpl : public ScrollbarThemeClient
{ | 37 class PLATFORM_EXPORT WebScrollbarThemeClientImpl : public ScrollbarThemeClient
{ |
| 38 WTF_MAKE_NONCOPYABLE(WebScrollbarThemeClientImpl); | 38 WTF_MAKE_NONCOPYABLE(WebScrollbarThemeClientImpl); |
| 39 public: | 39 public: |
| 40 // Caller must retain ownership of this pointer and ensure that its lifetime | 40 // Caller must retain ownership of this pointer and ensure that its lifetime |
| 41 // exceeds this instance. | 41 // exceeds this instance. |
| 42 WebScrollbarThemeClientImpl(WebScrollbar*); | 42 WebScrollbarThemeClientImpl(WebScrollbar&); |
| 43 ~WebScrollbarThemeClientImpl() override; | 43 ~WebScrollbarThemeClientImpl() override; |
| 44 | 44 |
| 45 // Implement ScrollbarThemeClient interface | 45 // Implement ScrollbarThemeClient interface |
| 46 int x() const override; | 46 int x() const override; |
| 47 int y() const override; | 47 int y() const override; |
| 48 int width() const override; | 48 int width() const override; |
| 49 int height() const override; | 49 int height() const override; |
| 50 IntSize size() const override; | 50 IntSize size() const override; |
| 51 IntPoint location() const override; | 51 IntPoint location() const override; |
| 52 Widget* parent() const override; | 52 Widget* parent() const override; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 79 void setIsAlphaLocked(bool) override; | 79 void setIsAlphaLocked(bool) override; |
| 80 float elasticOverscroll() const override; | 80 float elasticOverscroll() const override; |
| 81 void setElasticOverscroll(float) override; | 81 void setElasticOverscroll(float) override; |
| 82 bool trackNeedsRepaint() const override; | 82 bool trackNeedsRepaint() const override; |
| 83 void setTrackNeedsRepaint(bool) override; | 83 void setTrackNeedsRepaint(bool) override; |
| 84 bool thumbNeedsRepaint() const override; | 84 bool thumbNeedsRepaint() const override; |
| 85 void setThumbNeedsRepaint(bool) override; | 85 void setThumbNeedsRepaint(bool) override; |
| 86 String debugName() const final; | 86 String debugName() const final; |
| 87 | 87 |
| 88 private: | 88 private: |
| 89 WebScrollbar* m_scrollbar; | 89 WebScrollbar& m_scrollbar; |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace blink | 92 } // namespace blink |
| 93 | 93 |
| 94 #endif // WebScrollbarThemeClientImpl_h | 94 #endif // WebScrollbarThemeClientImpl_h |
| OLD | NEW |