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

Side by Side Diff: sky/engine/core/frame/FrameView.h

Issue 682363002: Remove more scrolling methods from FrameView. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/frame/EventHandlerRegistry.cpp ('k') | sky/engine/core/frame/FrameView.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) 1997 Martin Jones (mjones@kde.org) 2 Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 (C) 1998 Waldo Bastian (bastian@kde.org) 3 (C) 1998 Waldo Bastian (bastian@kde.org)
4 (C) 1998, 1999 Torben Weis (weis@kde.org) 4 (C) 1998, 1999 Torben Weis (weis@kde.org)
5 (C) 1999 Lars Knoll (knoll@kde.org) 5 (C) 1999 Lars Knoll (knoll@kde.org)
6 (C) 1999 Antti Koivisto (koivisto@kde.org) 6 (C) 1999 Antti Koivisto (koivisto@kde.org)
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
8 8
9 This library is free software; you can redistribute it and/or 9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public 10 modify it under the terms of the GNU Library General Public
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 void setHasSoftwareFilters(bool hasSoftwareFilters) { m_hasSoftwareFilters = hasSoftwareFilters; } 202 void setHasSoftwareFilters(bool hasSoftwareFilters) { m_hasSoftwareFilters = hasSoftwareFilters; }
203 bool hasSoftwareFilters() const { return m_hasSoftwareFilters; } 203 bool hasSoftwareFilters() const { return m_hasSoftwareFilters; }
204 204
205 bool isActive() const; 205 bool isActive() const;
206 206
207 // FIXME: This should probably be renamed as the 'inSubtreeLayout' parameter 207 // FIXME: This should probably be renamed as the 'inSubtreeLayout' parameter
208 // passed around the FrameView layout methods can be true while this returns 208 // passed around the FrameView layout methods can be true while this returns
209 // false. 209 // false.
210 bool isSubtreeLayout() const { return !!m_layoutSubtreeRoot; } 210 bool isSubtreeLayout() const { return !!m_layoutSubtreeRoot; }
211 211
212 // Sets the tickmarks for the FrameView, overriding the default behavior
213 // which is to display the tickmarks corresponding to find results.
214 // If |m_tickmarks| is empty, the default behavior is restored.
215 void setTickmarks(const Vector<IntRect>& tickmarks) { m_tickmarks = tickmark s; }
216
217 // ScrollableArea interface
218 // FIXME(sky): Remove
219 void getTickmarks(Vector<IntRect>&) const;
220 IntRect scrollableAreaBoundingBox() const;
221 bool scrollAnimatorEnabled() const;
222 bool usesCompositedScrolling() const;
223 GraphicsLayer* layerForScrolling() const;
224 GraphicsLayer* layerForHorizontalScrollbar() const;
225 GraphicsLayer* layerForVerticalScrollbar() const;
226 GraphicsLayer* layerForScrollCorner() const;
227
228 // FIXME(sky): remove 212 // FIXME(sky): remove
229 IntRect contentsToScreen(const IntRect& rect) const; 213 IntRect contentsToScreen(const IntRect& rect) const;
230 IntPoint contentsToRootView(const IntPoint& contentsPoint) const { return co nvertToRootView(contentsPoint); } 214 IntPoint contentsToRootView(const IntPoint& contentsPoint) const { return co nvertToRootView(contentsPoint); }
231 IntRect contentsToRootView(const IntRect& contentsRect) const { return conve rtToRootView(contentsRect); } 215 IntRect contentsToRootView(const IntRect& contentsRect) const { return conve rtToRootView(contentsRect); }
232 IntRect rootViewToContents(const IntRect& rootViewRect) const { return conve rtFromRootView(rootViewRect); } 216 IntRect rootViewToContents(const IntRect& rootViewRect) const { return conve rtFromRootView(rootViewRect); }
233 IntPoint windowToContents(const IntPoint& windowPoint) const { return conver tFromContainingWindow(windowPoint); } 217 IntPoint windowToContents(const IntPoint& windowPoint) const { return conver tFromContainingWindow(windowPoint); }
234 FloatPoint windowToContents(const FloatPoint& windowPoint) const { return co nvertFromContainingWindow(windowPoint); } 218 FloatPoint windowToContents(const FloatPoint& windowPoint) const { return co nvertFromContainingWindow(windowPoint); }
235 IntPoint contentsToWindow(const IntPoint& contentsPoint) const { return cont entsToWindow(contentsPoint); } 219 IntPoint contentsToWindow(const IntPoint& contentsPoint) const { return cont entsToWindow(contentsPoint); }
236 IntRect windowToContents(const IntRect& windowRect) const { return convertFr omContainingWindow(windowRect); } 220 IntRect windowToContents(const IntRect& windowRect) const { return convertFr omContainingWindow(windowRect); }
237 IntRect contentsToWindow(const IntRect& contentsRect) const { return content sToWindow(contentsRect); } 221 IntRect contentsToWindow(const IntRect& contentsRect) const { return content sToWindow(contentsRect); }
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue); 368 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue);
385 } 369 }
386 private: 370 private:
387 FrameView* m_view; 371 FrameView* m_view;
388 bool m_originalValue; 372 bool m_originalValue;
389 }; 373 };
390 374
391 } // namespace blink 375 } // namespace blink
392 376
393 #endif // FrameView_h 377 #endif // FrameView_h
OLDNEW
« no previous file with comments | « sky/engine/core/frame/EventHandlerRegistry.cpp ('k') | sky/engine/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698