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 22 matching lines...) Expand all Loading... |
33 namespace WebCore { | 33 namespace WebCore { |
34 class IntPoint; | 34 class IntPoint; |
35 class IntRect; | 35 class IntRect; |
36 class Scrollbar; | 36 class Scrollbar; |
37 } | 37 } |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 class ScrollbarGroup; | 41 class ScrollbarGroup; |
42 | 42 |
43 class WebPluginScrollbarImpl : public WebPluginScrollbar { | 43 class WebPluginScrollbarImpl FINAL : public WebPluginScrollbar { |
44 public: | 44 public: |
45 WebPluginScrollbarImpl(Orientation, ScrollbarGroup*, WebPluginScrollbarClien
t*); | 45 WebPluginScrollbarImpl(Orientation, ScrollbarGroup*, WebPluginScrollbarClien
t*); |
46 ~WebPluginScrollbarImpl(); | 46 virtual ~WebPluginScrollbarImpl(); |
47 | 47 |
48 void setScrollOffset(int); | 48 void setScrollOffset(int); |
49 void invalidateScrollbarRect(const WebCore::IntRect&); | 49 void invalidateScrollbarRect(const WebCore::IntRect&); |
50 // FIXME: Combine this with the other getTickmarks method | 50 // FIXME: Combine this with the other getTickmarks method |
51 void getTickmarks(Vector<WebCore::IntRect>&) const; | 51 void getTickmarks(Vector<WebCore::IntRect>&) const; |
52 WebCore::IntPoint convertFromContainingViewToScrollbar(const WebCore::IntPoi
nt& parentPoint) const; | 52 WebCore::IntPoint convertFromContainingViewToScrollbar(const WebCore::IntPoi
nt& parentPoint) const; |
53 void scrollbarStyleChanged(); | 53 void scrollbarStyleChanged(); |
54 | 54 |
55 int scrollOffset() { return m_scrollOffset; } | 55 int scrollOffset() { return m_scrollOffset; } |
56 WebCore::Scrollbar* scrollbar() { return m_scrollbar.get(); } | 56 WebCore::Scrollbar* scrollbar() { return m_scrollbar.get(); } |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 ScrollbarGroup* m_group; | 95 ScrollbarGroup* m_group; |
96 WebPluginScrollbarClient* m_client; | 96 WebPluginScrollbarClient* m_client; |
97 | 97 |
98 int m_scrollOffset; | 98 int m_scrollOffset; |
99 RefPtr<WebCore::Scrollbar> m_scrollbar; | 99 RefPtr<WebCore::Scrollbar> m_scrollbar; |
100 }; | 100 }; |
101 | 101 |
102 } // namespace blink | 102 } // namespace blink |
103 | 103 |
104 #endif | 104 #endif |
OLD | NEW |