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

Unified Diff: views/controls/native/native_view_host.cc

Issue 8340014: Minimize resize calls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/window.cc ('k') | views/widget/native_widget_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/native/native_view_host.cc
diff --git a/views/controls/native/native_view_host.cc b/views/controls/native/native_view_host.cc
index 728f70c8e0bee763169a20f57b4cb69d551d7693..2238e9946a6cb4fa79941eadf39812f9fe96287b 100644
--- a/views/controls/native/native_view_host.cc
+++ b/views/controls/native/native_view_host.cc
@@ -152,7 +152,11 @@ bool NativeViewHost::NeedsNotificationWhenVisibleBoundsChange() const {
// The native widget is placed relative to the root. As such, we need to
// know when the position of any ancestor changes, or our visibility relative
// to other views changed as it'll effect our position relative to the root.
+#if !defined(USE_AURA)
return true;
+#else
+ return false;
sky 2011/10/27 14:40:47 This comment seems to apply to aura. Why do we wan
DaveMoore 2011/10/27 21:25:13 Do we need this when there's only one native windo
sky 2011/10/27 22:12:20 We still have child windows for the TabContents an
DaveMoore 2011/10/28 16:46:48 Done.
+#endif
}
void NativeViewHost::OnVisibleBoundsChanged() {
« no previous file with comments | « ui/aura/window.cc ('k') | views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698