| 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 13 matching lines...) Expand all Loading... |
| 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/scroll/ScrollTypes.h" | 33 #include "platform/scroll/ScrollTypes.h" |
| 34 #include "public/platform/WebThemeEngine.h" |
| 34 #include "wtf/PassOwnPtr.h" | 35 #include "wtf/PassOwnPtr.h" |
| 35 #include "wtf/Vector.h" | 36 #include "wtf/Vector.h" |
| 36 | 37 |
| 37 namespace WebCore { | 38 namespace WebCore { |
| 38 | 39 |
| 39 class Widget; | 40 class Widget; |
| 40 | 41 |
| 41 class PLATFORM_EXPORT ScrollbarThemeClient { | 42 class PLATFORM_EXPORT ScrollbarThemeClient { |
| 42 public: | 43 public: |
| 43 virtual int x() const = 0; | 44 virtual int x() const = 0; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 virtual ScrollbarPart pressedPart() const = 0; | 78 virtual ScrollbarPart pressedPart() const = 0; |
| 78 virtual ScrollbarPart hoveredPart() const = 0; | 79 virtual ScrollbarPart hoveredPart() const = 0; |
| 79 | 80 |
| 80 virtual void styleChanged() = 0; | 81 virtual void styleChanged() = 0; |
| 81 | 82 |
| 82 virtual bool enabled() const = 0; | 83 virtual bool enabled() const = 0; |
| 83 virtual void setEnabled(bool) = 0; | 84 virtual void setEnabled(bool) = 0; |
| 84 | 85 |
| 85 virtual bool isOverlayScrollbar() const = 0; | 86 virtual bool isOverlayScrollbar() const = 0; |
| 86 | 87 |
| 88 virtual bool isDuringStateTransitionAnimation() const |
| 89 { |
| 90 return false; |
| 91 } |
| 92 virtual double stateTransitionProgress() const |
| 93 { |
| 94 return 0; |
| 95 } |
| 96 virtual blink::WebThemeEngine::State stateTransitionStartState() const |
| 97 { |
| 98 return blink::WebThemeEngine::StateNormal; |
| 99 } |
| 100 virtual blink::WebThemeEngine::State stateTransitionEndState() const |
| 101 { |
| 102 return blink::WebThemeEngine::StateNormal; |
| 103 } |
| 104 |
| 87 virtual bool isAlphaLocked() const = 0; | 105 virtual bool isAlphaLocked() const = 0; |
| 88 virtual void setIsAlphaLocked(bool) = 0; | 106 virtual void setIsAlphaLocked(bool) = 0; |
| 89 | 107 |
| 90 protected: | 108 protected: |
| 91 virtual ~ScrollbarThemeClient() { } | 109 virtual ~ScrollbarThemeClient() { } |
| 92 }; | 110 }; |
| 93 | 111 |
| 94 } // namespace WebCore | 112 } // namespace WebCore |
| 95 | 113 |
| 96 #endif // ScollbarThemeClient_h | 114 #endif // ScollbarThemeClient_h |
| OLD | NEW |