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

Side by Side Diff: Source/WebCore/platform/ScrollAnimator.h

Issue 13905007: Remove the last remaining PLATFORM() bits from WebCore. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fffffffffff Created 7 years, 8 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
« no previous file with comments | « Source/WebCore/page/EventHandler.cpp ('k') | Source/WebCore/platform/ScrollAnimator.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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual bool scroll(ScrollbarOrientation, ScrollGranularity, float step, flo at multiplier); 58 virtual bool scroll(ScrollbarOrientation, ScrollGranularity, float step, flo at multiplier);
59 59
60 virtual void scrollToOffsetWithoutAnimation(const FloatPoint&); 60 virtual void scrollToOffsetWithoutAnimation(const FloatPoint&);
61 61
62 ScrollableArea* scrollableArea() const { return m_scrollableArea; } 62 ScrollableArea* scrollableArea() const { return m_scrollableArea; }
63 63
64 virtual void setIsActive() { } 64 virtual void setIsActive() { }
65 65
66 virtual bool handleWheelEvent(const PlatformWheelEvent&); 66 virtual bool handleWheelEvent(const PlatformWheelEvent&);
67 67
68 #if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN)) 68 #if OS(DARWIN)
69 virtual void handleWheelEventPhase(PlatformWheelEventPhase) { } 69 virtual void handleWheelEventPhase(PlatformWheelEventPhase) { }
70 #endif 70 #endif
71 71
72 void setCurrentPosition(const FloatPoint&); 72 void setCurrentPosition(const FloatPoint&);
73 FloatPoint currentPosition() const; 73 FloatPoint currentPosition() const;
74 74
75 virtual void cancelAnimations() { } 75 virtual void cancelAnimations() { }
76 virtual void serviceScrollAnimations() { } 76 virtual void serviceScrollAnimations() { }
77 77
78 virtual void contentAreaWillPaint() const { } 78 virtual void contentAreaWillPaint() const { }
(...skipping 27 matching lines...) Expand all
106 virtual void notifyPositionChanged(const FloatSize& delta); 106 virtual void notifyPositionChanged(const FloatSize& delta);
107 107
108 ScrollableArea* m_scrollableArea; 108 ScrollableArea* m_scrollableArea;
109 float m_currentPosX; // We avoid using a FloatPoint in order to reduce 109 float m_currentPosX; // We avoid using a FloatPoint in order to reduce
110 float m_currentPosY; // subclass code complexity. 110 float m_currentPosY; // subclass code complexity.
111 }; 111 };
112 112
113 } // namespace WebCore 113 } // namespace WebCore
114 114
115 #endif // ScrollAnimator_h 115 #endif // ScrollAnimator_h
OLDNEW
« no previous file with comments | « Source/WebCore/page/EventHandler.cpp ('k') | Source/WebCore/platform/ScrollAnimator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698