Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Side by Side Diff: third_party/WebKit/WebCore/platform/gtk/ScrollbarGtk.h

Issue 39293: WebKit merge 41447:41498 [third_party/WebKit] (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove CRLF Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698