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

Unified Diff: ui/views/bubble/tray_bubble_view.cc

Issue 2908073003: Ensure that mask layer is of the same size as the owning layer. (Closed)
Patch Set: Compiling failure Created 3 years, 6 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
« ui/views/bubble/tray_bubble_view.h ('K') | « ui/views/bubble/tray_bubble_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/bubble/tray_bubble_view.cc
diff --git a/ui/views/bubble/tray_bubble_view.cc b/ui/views/bubble/tray_bubble_view.cc
index 9f106c168b7633118f05d0baad7fa7948346138d..9b2f79bc6bf1c1bfeca65cb6918544756a0b8b5b 100644
--- a/ui/views/bubble/tray_bubble_view.cc
+++ b/ui/views/bubble/tray_bubble_view.cc
@@ -383,4 +383,9 @@ void TrayBubbleView::ViewHierarchyChanged(
}
}
+void TrayBubbleView::SizeToContents() {
James Cook 2017/06/13 20:43:45 nit: move this up to match new header order
sunxd 2017/06/13 22:13:46 Done.
+ GetWidget()->SetBounds(GetBubbleBounds());
James Cook 2017/06/13 20:43:46 This should call the base class, BubbleDialogDeleg
sunxd 2017/06/13 22:13:46 Done.
+ bubble_content_mask_->layer()->SetBounds(layer()->bounds());
+}
+
} // namespace views
« ui/views/bubble/tray_bubble_view.h ('K') | « ui/views/bubble/tray_bubble_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698