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

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: Fixed a conflict on EventHandler 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
« no previous file with comments | « Source/core/editing/EditorCommand.cpp ('k') | 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 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;
364 virtual LayoutRect scrollIntoView( 363 virtual LayoutRect scrollIntoView(
365 const LayoutRect& rectInContent, 364 const LayoutRect& rectInContent,
366 const ScrollAlignment& alignX, 365 const ScrollAlignment& alignX,
367 const ScrollAlignment& alignY) override; 366 const ScrollAlignment& alignY) override;
368 367
369 // The window that hosts the FrameView. The FrameView will communicate scrol ls and repaints to the 368 // 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. 369 // host window in the window's coordinate space.
371 HostWindow* hostWindow() const override; 370 HostWindow* hostWindow() const override;
372 371
373 // Returns a clip rect in host window coordinates. Used to clip the blit on a scroll. 372 // 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; 888 static const unsigned visualPixelThreshold = 32 * 32;
890 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 889 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
891 setIsVisuallyNonEmpty(); 890 setIsVisuallyNonEmpty();
892 } 891 }
893 892
894 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 893 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
895 894
896 } // namespace blink 895 } // namespace blink
897 896
898 #endif // FrameView_h 897 #endif // FrameView_h
OLDNEW
« no previous file with comments | « Source/core/editing/EditorCommand.cpp ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698