OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 virtual int scrollPosition(WebCore::Scrollbar*) const; | 62 virtual int scrollPosition(WebCore::Scrollbar*) const; |
63 virtual void setScrollOffset(const WebCore::IntPoint&); | 63 virtual void setScrollOffset(const WebCore::IntPoint&); |
64 virtual void invalidateScrollbarRect(WebCore::Scrollbar*, const WebCore::Int
Rect&); | 64 virtual void invalidateScrollbarRect(WebCore::Scrollbar*, const WebCore::Int
Rect&); |
65 virtual void invalidateScrollCornerRect(const WebCore::IntRect&); | 65 virtual void invalidateScrollCornerRect(const WebCore::IntRect&); |
66 virtual bool isActive() const; | 66 virtual bool isActive() const; |
67 virtual WebCore::IntRect scrollCornerRect() const { return WebCore::IntRect(
); } | 67 virtual WebCore::IntRect scrollCornerRect() const { return WebCore::IntRect(
); } |
68 virtual bool isScrollCornerVisible() const; | 68 virtual bool isScrollCornerVisible() const; |
69 virtual void getTickmarks(Vector<WebCore::IntRect>&) const; | 69 virtual void getTickmarks(Vector<WebCore::IntRect>&) const; |
70 virtual WebCore::Scrollbar* horizontalScrollbar() const; | 70 virtual WebCore::Scrollbar* horizontalScrollbar() const; |
71 virtual WebCore::Scrollbar* verticalScrollbar() const; | 71 virtual WebCore::Scrollbar* verticalScrollbar() const; |
| 72 virtual int visibleHeight() const; |
| 73 virtual int visibleWidth() const; |
| 74 virtual WebCore::IntSize contentsSize() const; |
| 75 virtual WebCore::IntSize overhangAmount() const; |
72 | 76 |
73 private: | 77 private: |
74 bool onMouseDown(const WebInputEvent& event); | 78 bool onMouseDown(const WebInputEvent& event); |
75 bool onMouseUp(const WebInputEvent& event); | 79 bool onMouseUp(const WebInputEvent& event); |
76 bool onMouseMove(const WebInputEvent& event); | 80 bool onMouseMove(const WebInputEvent& event); |
77 bool onMouseLeave(const WebInputEvent& event); | 81 bool onMouseLeave(const WebInputEvent& event); |
78 bool onMouseWheel(const WebInputEvent& event); | 82 bool onMouseWheel(const WebInputEvent& event); |
79 bool onKeyDown(const WebInputEvent& event); | 83 bool onKeyDown(const WebInputEvent& event); |
80 | 84 |
81 WebScrollbarClient* m_client; | 85 WebScrollbarClient* m_client; |
82 | 86 |
83 int m_scrollOffset; | 87 int m_scrollOffset; |
84 RefPtr<WebCore::Scrollbar> m_scrollbar; | 88 RefPtr<WebCore::Scrollbar> m_scrollbar; |
85 }; | 89 }; |
86 | 90 |
87 } // namespace WebKit | 91 } // namespace WebKit |
88 | 92 |
89 #endif | 93 #endif |
OLD | NEW |