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

Side by Side Diff: Source/WebKit/chromium/src/WebScrollbarImpl.h

Issue 7248010: Merge 89584 - 2011-06-23 John Abd-El-Malek <jam@chromium.org> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/782/
Patch Set: Created 9 years, 6 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
« no previous file with comments | « no previous file | Source/WebKit/chromium/src/WebScrollbarImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/WebKit/chromium/src/WebScrollbarImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698