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

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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 // True if the FrameView is not transparent, and the base background color i s opaque. 148 // True if the FrameView is not transparent, and the base background color i s opaque.
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 // |clipRect| may not be nullptr. |unobscuredRect| is the clip rect that is not clipped to the root window. It may be nullptr.
Julien - ping for review 2015/03/27 21:26:07 I assume this should read: |clipRect| must not be
tommycli 2015/03/27 22:42:51 Done.
158 void getClipRectsForFrameOwner(const HTMLFrameOwnerElement*, IntRect* clipRe ct, IntRect* unobscuredRect) const;
158 159
159 float visibleContentScaleFactor() const { return m_visibleContentScaleFactor ; } 160 float visibleContentScaleFactor() const { return m_visibleContentScaleFactor ; }
160 void setVisibleContentScaleFactor(float); 161 void setVisibleContentScaleFactor(float);
161 162
162 // Scale used to convert incoming input events. Usually the same as visibleC ontentScaleFactor(), unless specifically changed. 163 // Scale used to convert incoming input events. Usually the same as visibleC ontentScaleFactor(), unless specifically changed.
163 float inputEventsScaleFactor() const; 164 float inputEventsScaleFactor() const;
164 // Offset used to convert incoming input events while emulating device metic s. 165 // Offset used to convert incoming input events while emulating device metic s.
165 IntSize inputEventsOffsetForEmulation() const; 166 IntSize inputEventsOffsetForEmulation() const;
166 void setInputEventsTransformForEmulation(const IntSize&, float); 167 void setInputEventsTransformForEmulation(const IntSize&, float);
167 168
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 static const unsigned visualPixelThreshold = 32 * 32; 872 static const unsigned visualPixelThreshold = 32 * 32;
872 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 873 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
873 setIsVisuallyNonEmpty(); 874 setIsVisuallyNonEmpty();
874 } 875 }
875 876
876 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 877 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
877 878
878 } // namespace blink 879 } // namespace blink
879 880
880 #endif // FrameView_h 881 #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