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

Side by Side Diff: Source/platform/scroll/ScrollView.h

Issue 298133003: Expose fractional TouchEvent coordinates (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merge with trunk Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Holger Hans Peter Freyther 3 * Copyright (C) 2009 Holger Hans Peter Freyther
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 172
173 IntPoint rootViewToContents(const IntPoint&) const; 173 IntPoint rootViewToContents(const IntPoint&) const;
174 IntPoint contentsToRootView(const IntPoint&) const; 174 IntPoint contentsToRootView(const IntPoint&) const;
175 IntRect rootViewToContents(const IntRect&) const; 175 IntRect rootViewToContents(const IntRect&) const;
176 IntRect contentsToRootView(const IntRect&) const; 176 IntRect contentsToRootView(const IntRect&) const;
177 177
178 // Event coordinates are assumed to be in the coordinate space of a window t hat contains 178 // Event coordinates are assumed to be in the coordinate space of a window t hat contains
179 // the entire widget hierarchy. It is up to the platform to decide what the precise definition 179 // the entire widget hierarchy. It is up to the platform to decide what the precise definition
180 // of containing window is. (For example on Mac it is the containing NSWindo w.) 180 // of containing window is. (For example on Mac it is the containing NSWindo w.)
181 IntPoint windowToContents(const IntPoint&) const; 181 IntPoint windowToContents(const IntPoint&) const;
182 FloatPoint windowToContents(const FloatPoint&) const;
182 IntPoint contentsToWindow(const IntPoint&) const; 183 IntPoint contentsToWindow(const IntPoint&) const;
183 IntRect windowToContents(const IntRect&) const; 184 IntRect windowToContents(const IntRect&) const;
184 IntRect contentsToWindow(const IntRect&) const; 185 IntRect contentsToWindow(const IntRect&) const;
185 186
186 // Functions for converting to screen coordinates. 187 // Functions for converting to screen coordinates.
187 IntRect contentsToScreen(const IntRect&) const; 188 IntRect contentsToScreen(const IntRect&) const;
188 189
189 // These functions are used to enable scrollbars to avoid window resizer con trols that overlap the scroll view. This happens on Mac 190 // These functions are used to enable scrollbars to avoid window resizer con trols that overlap the scroll view. This happens on Mac
190 // for example. 191 // for example.
191 virtual IntRect windowResizerRect() const { return IntRect(); } 192 virtual IntRect windowResizerRect() const { return IntRect(); }
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 322
322 void calculateOverhangAreasForPainting(IntRect& horizontalOverhangRect, IntR ect& verticalOverhangRect); 323 void calculateOverhangAreasForPainting(IntRect& horizontalOverhangRect, IntR ect& verticalOverhangRect);
323 void updateOverhangAreas(); 324 void updateOverhangAreas();
324 }; // class ScrollView 325 }; // class ScrollView
325 326
326 DEFINE_TYPE_CASTS(ScrollView, Widget, widget, widget->isScrollView(), widget.isS crollView()); 327 DEFINE_TYPE_CASTS(ScrollView, Widget, widget, widget->isScrollView(), widget.isS crollView());
327 328
328 } // namespace WebCore 329 } // namespace WebCore
329 330
330 #endif // ScrollView_h 331 #endif // ScrollView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698