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

Side by Side Diff: Source/core/frame/FrameView.h

Issue 751573002: Use viewportConstrainedVisibleContentRect() to get the scrolling offset (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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/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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 // This function exists for ports that need to handle wheel events manually. 300 // This function exists for ports that need to handle wheel events manually.
301 // On Mac WebKit1 the underlying NSScrollView just does the scrolling, but o n most other platforms 301 // On Mac WebKit1 the underlying NSScrollView just does the scrolling, but o n most other platforms
302 // we need this function in order to do the scroll ourselves. 302 // we need this function in order to do the scroll ourselves.
303 bool wheelEvent(const PlatformWheelEvent&); 303 bool wheelEvent(const PlatformWheelEvent&);
304 304
305 bool inProgrammaticScroll() const { return m_inProgrammaticScroll; } 305 bool inProgrammaticScroll() const { return m_inProgrammaticScroll; }
306 void setInProgrammaticScroll(bool programmaticScroll) { m_inProgrammaticScro ll = programmaticScroll; } 306 void setInProgrammaticScroll(bool programmaticScroll) { m_inProgrammaticScro ll = programmaticScroll; }
307 307
308 virtual bool isActive() const override; 308 virtual bool isActive() const override;
309 309
310 // DEPRECATED: Use viewportConstrainedVisibleContentRect() instead. 310 // DEPRECATED: Use viewportConstrainedVisibleContentRect() instead.
Xianzhu 2014/12/11 19:59:26 Please remove this line.
311 IntSize scrollOffsetForFixedPosition() const; 311 IntSize scrollOffsetForViewportConstrainedObjects() const;
312 312
313 // Override scrollbar notifications to update the AXObject cache. 313 // Override scrollbar notifications to update the AXObject cache.
314 virtual void didAddScrollbar(Scrollbar*, ScrollbarOrientation) override; 314 virtual void didAddScrollbar(Scrollbar*, ScrollbarOrientation) override;
315 virtual void willRemoveScrollbar(Scrollbar*, ScrollbarOrientation) override; 315 virtual void willRemoveScrollbar(Scrollbar*, ScrollbarOrientation) override;
316 316
317 // FIXME: This should probably be renamed as the 'inSubtreeLayout' parameter 317 // FIXME: This should probably be renamed as the 'inSubtreeLayout' parameter
318 // passed around the FrameView layout methods can be true while this returns 318 // passed around the FrameView layout methods can be true while this returns
319 // false. 319 // false.
320 bool isSubtreeLayout() const { return !!m_layoutSubtreeRoot; } 320 bool isSubtreeLayout() const { return !!m_layoutSubtreeRoot; }
321 321
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 } 845 }
846 846
847 private: 847 private:
848 RawPtrWillBeMember<FrameView> m_view; 848 RawPtrWillBeMember<FrameView> m_view;
849 bool m_originalValue; 849 bool m_originalValue;
850 }; 850 };
851 851
852 } // namespace blink 852 } // namespace blink
853 853
854 #endif // FrameView_h 854 #endif // FrameView_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698