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 | |
35 | 32 |
36 namespace blink { | 33 namespace blink { |
37 | 34 |
38 // A const accessor interface for a WebKit scrollbar | 35 // A const accessor interface for a WebKit scrollbar |
39 class BLINK_PLATFORM_EXPORT WebScrollbar { | 36 class BLINK_PLATFORM_EXPORT WebScrollbar { |
40 public: | 37 public: |
41 enum Orientation { | 38 enum Orientation { |
42 Horizontal, | 39 Horizontal, |
43 Vertical | 40 Vertical |
44 }; | 41 }; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 virtual bool isCustomScrollbar() const = 0; | 99 virtual bool isCustomScrollbar() const = 0; |
103 virtual Orientation orientation() const = 0; | 100 virtual Orientation orientation() const = 0; |
104 virtual bool isLeftSideVerticalScrollbar() const = 0; | 101 virtual bool isLeftSideVerticalScrollbar() const = 0; |
105 virtual float elasticOverscroll() const = 0; | 102 virtual float elasticOverscroll() const = 0; |
106 virtual void setElasticOverscroll(float) = 0; | 103 virtual void setElasticOverscroll(float) = 0; |
107 }; | 104 }; |
108 | 105 |
109 } // namespace blink | 106 } // namespace blink |
110 | 107 |
111 #endif | 108 #endif |
OLD | NEW |