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

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

Issue 1147283002: Add ScrollDirectionPhysical enum in Scroll types. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 virtual GraphicsLayer* layerForScrolling() const override; 353 virtual GraphicsLayer* layerForScrolling() const override;
354 virtual GraphicsLayer* layerForHorizontalScrollbar() const override; 354 virtual GraphicsLayer* layerForHorizontalScrollbar() const override;
355 virtual GraphicsLayer* layerForVerticalScrollbar() const override; 355 virtual GraphicsLayer* layerForVerticalScrollbar() const override;
356 virtual GraphicsLayer* layerForScrollCorner() const override; 356 virtual GraphicsLayer* layerForScrollCorner() const override;
357 virtual int scrollSize(ScrollbarOrientation) const override; 357 virtual int scrollSize(ScrollbarOrientation) const override;
358 virtual void setScrollOffset(const IntPoint&) override; 358 virtual void setScrollOffset(const IntPoint&) override;
359 virtual void setScrollOffset(const DoublePoint&) override; 359 virtual void setScrollOffset(const DoublePoint&) override;
360 virtual bool isScrollCornerVisible() const override; 360 virtual bool isScrollCornerVisible() const override;
361 virtual bool userInputScrollable(ScrollbarOrientation) const override; 361 virtual bool userInputScrollable(ScrollbarOrientation) const override;
362 virtual bool shouldPlaceVerticalScrollbarOnLeft() const override; 362 virtual bool shouldPlaceVerticalScrollbarOnLeft() const override;
363 virtual bool scroll(ScrollDirection, ScrollGranularity, float delta = 1) ove rride; 363 virtual bool scroll(ScrollDirectionPhysical, ScrollGranularity, float delta = 1) override;
364 virtual LayoutRect scrollIntoView( 364 virtual LayoutRect scrollIntoView(
365 const LayoutRect& rectInContent, 365 const LayoutRect& rectInContent,
366 const ScrollAlignment& alignX, 366 const ScrollAlignment& alignX,
367 const ScrollAlignment& alignY) override; 367 const ScrollAlignment& alignY) override;
368 368
369 // The window that hosts the FrameView. The FrameView will communicate scrol ls and repaints to the 369 // The window that hosts the FrameView. The FrameView will communicate scrol ls and repaints to the
370 // host window in the window's coordinate space. 370 // host window in the window's coordinate space.
371 HostWindow* hostWindow() const override; 371 HostWindow* hostWindow() const override;
372 372
373 // Returns a clip rect in host window coordinates. Used to clip the blit on a scroll. 373 // Returns a clip rect in host window coordinates. Used to clip the blit on a scroll.
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 static const unsigned visualPixelThreshold = 32 * 32; 889 static const unsigned visualPixelThreshold = 32 * 32;
890 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 890 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
891 setIsVisuallyNonEmpty(); 891 setIsVisuallyNonEmpty();
892 } 892 }
893 893
894 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 894 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
895 895
896 } // namespace blink 896 } // namespace blink
897 897
898 #endif // FrameView_h 898 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698