Chromium Code Reviews| 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) { |