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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 11 matching lines...) Expand all Loading... |
22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 */ | 23 */ |
24 | 24 |
25 #ifndef WebScrollbar_h | 25 #ifndef WebScrollbar_h |
26 #define WebScrollbar_h | 26 #define WebScrollbar_h |
27 | 27 |
28 #include "WebPoint.h" | 28 #include "WebPoint.h" |
29 #include "WebRect.h" | 29 #include "WebRect.h" |
30 #include "WebSize.h" | 30 #include "WebSize.h" |
31 #include "WebVector.h" | 31 #include "WebVector.h" |
| 32 #if INSIDE_BLINK |
| 33 #include "wtf/PassOwnPtr.h" |
| 34 #endif |
32 | 35 |
33 namespace blink { | 36 namespace blink { |
34 | 37 |
35 // A const accessor interface for a WebKit scrollbar | 38 // A const accessor interface for a WebKit scrollbar |
36 class BLINK_PLATFORM_EXPORT WebScrollbar { | 39 class BLINK_PLATFORM_EXPORT WebScrollbar { |
37 public: | 40 public: |
38 enum Orientation { | 41 enum Orientation { |
39 Horizontal, | 42 Horizontal, |
40 Vertical | 43 Vertical |
41 }; | 44 }; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 virtual bool isCustomScrollbar() const = 0; | 102 virtual bool isCustomScrollbar() const = 0; |
100 virtual Orientation orientation() const = 0; | 103 virtual Orientation orientation() const = 0; |
101 virtual bool isLeftSideVerticalScrollbar() const = 0; | 104 virtual bool isLeftSideVerticalScrollbar() const = 0; |
102 virtual float elasticOverscroll() const = 0; | 105 virtual float elasticOverscroll() const = 0; |
103 virtual void setElasticOverscroll(float) = 0; | 106 virtual void setElasticOverscroll(float) = 0; |
104 }; | 107 }; |
105 | 108 |
106 } // namespace blink | 109 } // namespace blink |
107 | 110 |
108 #endif | 111 #endif |
OLD | NEW |