| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2008 Apple 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 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 typedef struct _GtkAdjustment GtkAdjustment; | 32 typedef struct _GtkAdjustment GtkAdjustment; |
| 33 | 33 |
| 34 namespace WebCore { | 34 namespace WebCore { |
| 35 | 35 |
| 36 class ScrollbarGtk : public Scrollbar { | 36 class ScrollbarGtk : public Scrollbar { |
| 37 public: | 37 public: |
| 38 friend class Scrollbar; | 38 friend class Scrollbar; |
| 39 | 39 |
| 40 virtual void setFrameRect(const IntRect&); | 40 virtual void setFrameRect(const IntRect&); |
| 41 virtual void paint(GraphicsContext*, const IntRect&); |
| 41 | 42 |
| 42 virtual bool handleMouseMoveEvent(const PlatformMouseEvent&) { return false;
} | 43 virtual bool handleMouseMoveEvent(const PlatformMouseEvent&) { return false;
} |
| 43 virtual bool handleMouseOutEvent(const PlatformMouseEvent&) { return false;
} | 44 virtual bool handleMouseOutEvent(const PlatformMouseEvent&) { return false;
} |
| 44 virtual bool handleMousePressEvent(const PlatformMouseEvent&) { return false
; } | 45 virtual bool handleMousePressEvent(const PlatformMouseEvent&) { return false
; } |
| 45 virtual bool handleMouseReleaseEvent(const PlatformMouseEvent&) { return fal
se; } | 46 virtual bool handleMouseReleaseEvent(const PlatformMouseEvent&) { return fal
se; } |
| 46 | 47 |
| 47 virtual void setEnabled(bool); | 48 virtual void setEnabled(bool); |
| 48 | 49 |
| 49 virtual void frameRectsChanged(); | 50 virtual void frameRectsChanged(); |
| 50 | 51 |
| 51 protected: | 52 protected: |
| 52 ScrollbarGtk(ScrollbarClient*, ScrollbarOrientation, ScrollbarControlSize); | 53 ScrollbarGtk(ScrollbarClient*, ScrollbarOrientation, ScrollbarControlSize); |
| 53 | 54 |
| 54 virtual void updateThumbPosition(); | 55 virtual void updateThumbPosition(); |
| 55 virtual void updateThumbProportion(); | 56 virtual void updateThumbProportion(); |
| 56 | 57 |
| 57 private: | 58 private: |
| 58 static void gtkValueChanged(GtkAdjustment*, ScrollbarGtk*); | 59 static void gtkValueChanged(GtkAdjustment*, ScrollbarGtk*); |
| 59 GtkAdjustment* m_adjustment; | 60 GtkAdjustment* m_adjustment; |
| 60 }; | 61 }; |
| 61 | 62 |
| 62 } | 63 } |
| 63 | 64 |
| 64 #endif // ScrollbarGtk_h | 65 #endif // ScrollbarGtk_h |
| OLD | NEW |