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

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

Issue 2803293002: Create Bookmark Footnote desktop iOS promotion (Closed)
Patch Set: Add footnote promotion Created 3 years, 7 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
Index: ui/views/bubble/bubble_frame_view.cc
diff --git a/ui/views/bubble/bubble_frame_view.cc b/ui/views/bubble/bubble_frame_view.cc
index c97fcf3eacc14dc428e4629fb94da1bcd6c5416a..f23cc758b62ed758fa46020dbce9ee87a57287b9 100644
--- a/ui/views/bubble/bubble_frame_view.cc
+++ b/ui/views/bubble/bubble_frame_view.cc
@@ -408,6 +408,16 @@ void BubbleFrameView::SetFootnoteView(View* view) {
AddChildView(footnote_container_);
}
+void BubbleFrameView::RemoveFootnoteView() {
sky 2017/05/17 16:00:41 Instead of an explicit function like this, overrid
mrefaat 2017/05/17 19:44:56 I remember that we talked about that and you said
sky 2017/05/18 02:55:38 Sorry if I mislead you. It's a similar argument to
mrefaat1 2017/05/23 22:15:34 Done.
+ if (!footnote_container_)
+ return;
+
+ RemoveChildView(footnote_container_);
+ footnote_container_->RemoveAllChildViews(true);
+ delete footnote_container_;
+ footnote_container_ = nullptr;
+}
+
gfx::Rect BubbleFrameView::GetUpdatedWindowBounds(const gfx::Rect& anchor_rect,
const gfx::Size& client_size,
bool adjust_if_offscreen) {

Powered by Google App Engine
This is Rietveld 408576698