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

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

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 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
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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 bool usesCompositedScrolling() const override; 366 bool usesCompositedScrolling() const override;
367 bool shouldScrollOnMainThread() const override; 367 bool shouldScrollOnMainThread() const override;
368 GraphicsLayer* layerForScrolling() const override; 368 GraphicsLayer* layerForScrolling() const override;
369 GraphicsLayer* layerForHorizontalScrollbar() const override; 369 GraphicsLayer* layerForHorizontalScrollbar() const override;
370 GraphicsLayer* layerForVerticalScrollbar() const override; 370 GraphicsLayer* layerForVerticalScrollbar() const override;
371 GraphicsLayer* layerForScrollCorner() const override; 371 GraphicsLayer* layerForScrollCorner() const override;
372 int scrollSize(ScrollbarOrientation) const override; 372 int scrollSize(ScrollbarOrientation) const override;
373 bool isScrollCornerVisible() const override; 373 bool isScrollCornerVisible() const override;
374 bool userInputScrollable(ScrollbarOrientation) const override; 374 bool userInputScrollable(ScrollbarOrientation) const override;
375 bool shouldPlaceVerticalScrollbarOnLeft() const override; 375 bool shouldPlaceVerticalScrollbarOnLeft() const override;
376 Widget* widget() override; 376 Widget* getWidget() override;
377 377
378 LayoutRect scrollIntoView( 378 LayoutRect scrollIntoView(
379 const LayoutRect& rectInContent, 379 const LayoutRect& rectInContent,
380 const ScrollAlignment& alignX, 380 const ScrollAlignment& alignX,
381 const ScrollAlignment& alignY, 381 const ScrollAlignment& alignY,
382 ScrollType = ProgrammaticScroll) override; 382 ScrollType = ProgrammaticScroll) override;
383 383
384 // The window that hosts the FrameView. The FrameView will communicate scrol ls and repaints to the 384 // The window that hosts the FrameView. The FrameView will communicate scrol ls and repaints to the
385 // host window in the window's coordinate space. 385 // host window in the window's coordinate space.
386 HostWindow* hostWindow() const; 386 HostWindow* getHostWindow() const;
387 387
388 // Returns a clip rect in host window coordinates. Used to clip the blit on a scroll. 388 // Returns a clip rect in host window coordinates. Used to clip the blit on a scroll.
389 IntRect windowClipRect(IncludeScrollbarsInRect = ExcludeScrollbars) const; 389 IntRect windowClipRect(IncludeScrollbarsInRect = ExcludeScrollbars) const;
390 390
391 typedef WillBeHeapHashSet<RefPtrWillBeMember<Widget>> ChildrenWidgetSet; 391 typedef WillBeHeapHashSet<RefPtrWillBeMember<Widget>> ChildrenWidgetSet;
392 392
393 // Functions for child manipulation and inspection. 393 // Functions for child manipulation and inspection.
394 void setParent(Widget*) override; 394 void setParent(Widget*) override;
395 void removeChild(Widget*); 395 void removeChild(Widget*);
396 void addChild(PassRefPtrWillBeRawPtr<Widget>); 396 void addChild(PassRefPtrWillBeRawPtr<Widget>);
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 bool isFrameView() const override { return true; } 541 bool isFrameView() const override { return true; }
542 542
543 DECLARE_VIRTUAL_TRACE(); 543 DECLARE_VIRTUAL_TRACE();
544 void notifyPageThatContentAreaWillPaint() const; 544 void notifyPageThatContentAreaWillPaint() const;
545 FrameView* parentFrameView() const; 545 FrameView* parentFrameView() const;
546 546
547 // Returns the scrollable area for the frame. For the root frame, this will 547 // Returns the scrollable area for the frame. For the root frame, this will
548 // be the RootFrameViewport, which adds pinch-zoom semantics to scrolling. 548 // be the RootFrameViewport, which adds pinch-zoom semantics to scrolling.
549 // For non-root frames, this will be the the ScrollableArea used by the 549 // For non-root frames, this will be the the ScrollableArea used by the
550 // FrameView, depending on whether root-layer-scrolls is enabled. 550 // FrameView, depending on whether root-layer-scrolls is enabled.
551 ScrollableArea* scrollableArea(); 551 ScrollableArea* getScrollableArea();
552 552
553 // Used to get at the underlying layoutViewport in the rare instances where 553 // Used to get at the underlying layoutViewport in the rare instances where
554 // we actually want to scroll *just* the layout viewport (e.g. when sending 554 // we actually want to scroll *just* the layout viewport (e.g. when sending
555 // deltas from CC). For typical scrolling cases, use scrollableArea(). 555 // deltas from CC). For typical scrolling cases, use getScrollableArea().
556 ScrollableArea* layoutViewportScrollableArea(); 556 ScrollableArea* layoutViewportScrollableArea();
557 557
558 int viewportWidth() const; 558 int viewportWidth() const;
559 559
560 LayoutAnalyzer* layoutAnalyzer() { return m_analyzer.get(); } 560 LayoutAnalyzer* layoutAnalyzer() { return m_analyzer.get(); }
561 561
562 // Returns true if the default scrolling direction is vertical. i.e. writing mode 562 // Returns true if the default scrolling direction is vertical. i.e. writing mode
563 // is horiziontal. In a vertical document, a spacebar scrolls down. 563 // is horiziontal. In a vertical document, a spacebar scrolls down.
564 bool isVerticalDocument() const; 564 bool isVerticalDocument() const;
565 565
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
927 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 927 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
928 setIsVisuallyNonEmpty(); 928 setIsVisuallyNonEmpty();
929 } 929 }
930 930
931 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 931 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
932 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView()); 932 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView());
933 933
934 } // namespace blink 934 } // namespace blink
935 935
936 #endif // FrameView_h 936 #endif // FrameView_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameSerializer.cpp ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698