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

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

Issue 2108803006: Fix inspector overlay when use-zoom-for-dsf is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: plumb through frameview instead Created 4 years, 5 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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 // document's top left corner and thus are not affected by scroll offset. 501 // document's top left corner and thus are not affected by scroll offset.
502 IntPoint contentsToFrame(const IntPoint&) const; 502 IntPoint contentsToFrame(const IntPoint&) const;
503 IntRect contentsToFrame(const IntRect&) const; 503 IntRect contentsToFrame(const IntRect&) const;
504 IntPoint frameToContents(const IntPoint&) const; 504 IntPoint frameToContents(const IntPoint&) const;
505 FloatPoint frameToContents(const FloatPoint&) const; 505 FloatPoint frameToContents(const FloatPoint&) const;
506 IntRect frameToContents(const IntRect&) const; 506 IntRect frameToContents(const IntRect&) const;
507 507
508 // Functions for converting to screen coordinates. 508 // Functions for converting to screen coordinates.
509 IntRect contentsToScreen(const IntRect&) const; 509 IntRect contentsToScreen(const IntRect&) const;
510 510
511 float viewportToWindowScale() const;
dgozman 2016/07/07 00:30:09 Let's not introduce this method, it will encourage
Bret 2016/07/07 01:15:11 Done.
512
511 // These functions are used to enable scrollbars to avoid window resizer con trols that overlap the scroll view. 513 // These functions are used to enable scrollbars to avoid window resizer con trols that overlap the scroll view.
512 // This happens only on Mac OS X 10.6. 514 // This happens only on Mac OS X 10.6.
513 IntRect windowResizerRect() const; 515 IntRect windowResizerRect() const;
514 bool containsScrollbarsAvoidingResizer() const; 516 bool containsScrollbarsAvoidingResizer() const;
515 void adjustScrollbarsAvoidingResizerCount(int overlapDelta); 517 void adjustScrollbarsAvoidingResizerCount(int overlapDelta);
516 void windowResizerRectChanged(); 518 void windowResizerRectChanged();
517 519
518 // For platforms that need to hit test scrollbars from within the engine's e vent handlers (like Win32). 520 // For platforms that need to hit test scrollbars from within the engine's e vent handlers (like Win32).
519 Scrollbar* scrollbarAtFramePoint(const IntPoint&); 521 Scrollbar* scrollbarAtFramePoint(const IntPoint&);
520 522
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 957 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
956 setIsVisuallyNonEmpty(); 958 setIsVisuallyNonEmpty();
957 } 959 }
958 960
959 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 961 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
960 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView()); 962 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView());
961 963
962 } // namespace blink 964 } // namespace blink
963 965
964 #endif // FrameView_h 966 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698