| OLD | NEW |
| 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 20 matching lines...) Expand all Loading... |
| 31 #ifndef ScrollbarThemeOverlayMock_h | 31 #ifndef ScrollbarThemeOverlayMock_h |
| 32 #define ScrollbarThemeOverlayMock_h | 32 #define ScrollbarThemeOverlayMock_h |
| 33 | 33 |
| 34 #include "platform/scroll/ScrollbarThemeOverlay.h" | 34 #include "platform/scroll/ScrollbarThemeOverlay.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 class PLATFORM_EXPORT ScrollbarThemeOverlayMock : public ScrollbarThemeOverlay { | 38 class PLATFORM_EXPORT ScrollbarThemeOverlayMock : public ScrollbarThemeOverlay { |
| 39 public: | 39 public: |
| 40 ScrollbarThemeOverlayMock() | 40 ScrollbarThemeOverlayMock() |
| 41 : ScrollbarThemeOverlay(3, 4, DisallowHitTest, Color(128, 128, 128)), | 41 : ScrollbarThemeOverlay(3, 4, DisallowHitTest, Color(128, 128, 128)) {} |
| 42 m_delayInSeconds(0.0) {} | |
| 43 | |
| 44 double overlayScrollbarFadeOutDelaySeconds() const override { | |
| 45 return m_delayInSeconds; | |
| 46 } | |
| 47 double overlayScrollbarFadeOutDurationSeconds() const override { return 0.0; } | |
| 48 | |
| 49 void setOverlayScrollbarFadeOutDelay(double delayInSeconds) { | |
| 50 m_delayInSeconds = delayInSeconds; | |
| 51 } | |
| 52 | 42 |
| 53 private: | 43 private: |
| 54 double m_delayInSeconds; | |
| 55 bool isMockTheme() const final { return true; } | 44 bool isMockTheme() const final { return true; } |
| 56 }; | 45 }; |
| 57 | 46 |
| 58 } // namespace blink | 47 } // namespace blink |
| 59 #endif // ScrollbarThemeOverlayMock_h | 48 #endif // ScrollbarThemeOverlayMock_h |
| OLD | NEW |