| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 20 matching lines...) Expand all Loading... |
| 31 #include "wtf/RefPtr.h" | 31 #include "wtf/RefPtr.h" |
| 32 | 32 |
| 33 namespace WebCore { | 33 namespace WebCore { |
| 34 class FrameView; | 34 class FrameView; |
| 35 } | 35 } |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 class WebPluginScrollbarImpl; | 39 class WebPluginScrollbarImpl; |
| 40 | 40 |
| 41 class ScrollbarGroup : public WebCore::ScrollableArea { | 41 class ScrollbarGroup FINAL : public WebCore::ScrollableArea { |
| 42 public: | 42 public: |
| 43 ScrollbarGroup(WebCore::FrameView*, const WebCore::IntRect& frameRect); | 43 ScrollbarGroup(WebCore::FrameView*, const WebCore::IntRect& frameRect); |
| 44 ~ScrollbarGroup(); | 44 virtual ~ScrollbarGroup(); |
| 45 | 45 |
| 46 void scrollbarCreated(WebPluginScrollbarImpl*); | 46 void scrollbarCreated(WebPluginScrollbarImpl*); |
| 47 void scrollbarDestroyed(WebPluginScrollbarImpl*); | 47 void scrollbarDestroyed(WebPluginScrollbarImpl*); |
| 48 void setLastMousePosition(const WebCore::IntPoint&); | 48 void setLastMousePosition(const WebCore::IntPoint&); |
| 49 void setFrameRect(const WebCore::IntRect&); | 49 void setFrameRect(const WebCore::IntRect&); |
| 50 | 50 |
| 51 // WebCore::ScrollableArea methods | 51 // WebCore::ScrollableArea methods |
| 52 virtual int scrollSize(WebCore::ScrollbarOrientation) const OVERRIDE; | 52 virtual int scrollSize(WebCore::ScrollbarOrientation) const OVERRIDE; |
| 53 virtual void setScrollOffset(const WebCore::IntPoint&) OVERRIDE; | 53 virtual void setScrollOffset(const WebCore::IntPoint&) OVERRIDE; |
| 54 virtual void invalidateScrollbarRect(WebCore::Scrollbar*, const WebCore::Int
Rect&) OVERRIDE; | 54 virtual void invalidateScrollbarRect(WebCore::Scrollbar*, const WebCore::Int
Rect&) OVERRIDE; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 81 WebCore::FrameView* m_frameView; | 81 WebCore::FrameView* m_frameView; |
| 82 WebCore::IntPoint m_lastMousePosition; | 82 WebCore::IntPoint m_lastMousePosition; |
| 83 WebCore::IntRect m_frameRect; | 83 WebCore::IntRect m_frameRect; |
| 84 WebPluginScrollbarImpl* m_horizontalScrollbar; | 84 WebPluginScrollbarImpl* m_horizontalScrollbar; |
| 85 WebPluginScrollbarImpl* m_verticalScrollbar; | 85 WebPluginScrollbarImpl* m_verticalScrollbar; |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 } // namespace blink | 88 } // namespace blink |
| 89 | 89 |
| 90 #endif | 90 #endif |
| OLD | NEW |