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

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

Issue 14107015: Rename OS(DARWIN) to OS(MACOSX). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 3 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 | « Source/core/platform/PlatformWheelEvent.h ('k') | Source/core/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 OS(DARWIN) 68 #if OS(MACOSX)
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 30 matching lines...) Expand all
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 private: 112 private:
113 float clampScrollPosition(ScrollbarOrientation, float); 113 float clampScrollPosition(ScrollbarOrientation, float);
114 }; 114 };
115 115
116 } // namespace WebCore 116 } // namespace WebCore
117 117
118 #endif // ScrollAnimator_h 118 #endif // ScrollAnimator_h
OLDNEW
« no previous file with comments | « Source/core/platform/PlatformWheelEvent.h ('k') | Source/core/platform/ScrollAnimator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698