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

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

Issue 1033603007: Blink: Pass 'unobscured' rect to WebPlugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | Source/core/frame/FrameView.cpp » ('j') | Source/core/frame/FrameView.cpp » ('J')
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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 bool hasOpaqueBackground() const; 149 bool hasOpaqueBackground() const;
150 150
151 Color baseBackgroundColor() const; 151 Color baseBackgroundColor() const;
152 void setBaseBackgroundColor(const Color&); 152 void setBaseBackgroundColor(const Color&);
153 void updateBackgroundRecursively(const Color&, bool); 153 void updateBackgroundRecursively(const Color&, bool);
154 154
155 void adjustViewSize(); 155 void adjustViewSize();
156 156
157 IntRect windowClipRectForFrameOwner(const HTMLFrameOwnerElement*) const; 157 IntRect windowClipRectForFrameOwner(const HTMLFrameOwnerElement*) const;
158 158
159 // Returns the clip rect for the element without clipping to the root view.
160 // Used to determine the visible portion of elements below the fold.
161 IntRect unobscuredRectForFrameOwner(const HTMLFrameOwnerElement*) const;
162
159 float visibleContentScaleFactor() const { return m_visibleContentScaleFactor ; } 163 float visibleContentScaleFactor() const { return m_visibleContentScaleFactor ; }
160 void setVisibleContentScaleFactor(float); 164 void setVisibleContentScaleFactor(float);
161 165
162 // Scale used to convert incoming input events. Usually the same as visibleC ontentScaleFactor(), unless specifically changed. 166 // Scale used to convert incoming input events. Usually the same as visibleC ontentScaleFactor(), unless specifically changed.
163 float inputEventsScaleFactor() const; 167 float inputEventsScaleFactor() const;
164 // Offset used to convert incoming input events while emulating device metic s. 168 // Offset used to convert incoming input events while emulating device metic s.
165 IntSize inputEventsOffsetForEmulation() const; 169 IntSize inputEventsOffsetForEmulation() const;
166 void setInputEventsTransformForEmulation(const IntSize&, float); 170 void setInputEventsTransformForEmulation(const IntSize&, float);
167 171
168 virtual void setScrollPosition(const DoublePoint&, ScrollBehavior = ScrollBe haviorInstant) override; 172 virtual void setScrollPosition(const DoublePoint&, ScrollBehavior = ScrollBe haviorInstant) override;
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 static const unsigned visualPixelThreshold = 32 * 32; 875 static const unsigned visualPixelThreshold = 32 * 32;
872 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 876 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
873 setIsVisuallyNonEmpty(); 877 setIsVisuallyNonEmpty();
874 } 878 }
875 879
876 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 880 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
877 881
878 } // namespace blink 882 } // namespace blink
879 883
880 #endif // FrameView_h 884 #endif // FrameView_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/FrameView.cpp » ('j') | Source/core/frame/FrameView.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698