| Index: ui/views/bubble/bubble_frame_view.h
|
| diff --git a/ui/views/bubble/bubble_frame_view.h b/ui/views/bubble/bubble_frame_view.h
|
| index b21215cb37d3fe777ea758f8d0b20b762e40bfae..28750c3d5822e63188a9ee0c0985ef586ab9f2b3 100644
|
| --- a/ui/views/bubble/bubble_frame_view.h
|
| +++ b/ui/views/bubble/bubble_frame_view.h
|
| @@ -84,6 +84,8 @@ class VIEWS_EXPORT BubbleFrameView : public NonClientFrameView,
|
| gfx::Size client_size,
|
| bool adjust_if_offscreen);
|
|
|
| + bool close_button_clicked() const { return close_button_clicked_; }
|
| +
|
| protected:
|
| // Returns the available screen bounds if the frame were to show in |rect|.
|
| virtual gfx::Rect GetAvailableScreenBounds(const gfx::Rect& rect) const;
|
| @@ -93,6 +95,7 @@ class VIEWS_EXPORT BubbleFrameView : public NonClientFrameView,
|
|
|
| private:
|
| FRIEND_TEST_ALL_PREFIXES(BubbleFrameViewTest, GetBoundsForClientView);
|
| + FRIEND_TEST_ALL_PREFIXES(BubbleDelegateTest, CloseReasons);
|
|
|
| // Mirrors the bubble's arrow location on the |vertical| or horizontal axis,
|
| // if the generated window bounds don't fit in the monitor bounds.
|
| @@ -123,6 +126,9 @@ class VIEWS_EXPORT BubbleFrameView : public NonClientFrameView,
|
| // (x) close button.
|
| View* titlebar_extra_view_;
|
|
|
| + // Whether the close button was clicked.
|
| + bool close_button_clicked_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(BubbleFrameView);
|
| };
|
|
|
|
|