OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ | 5 #ifndef UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ |
6 #define UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ | 6 #define UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 void ButtonPressed(Button* sender, const ui::Event& event) override; | 68 void ButtonPressed(Button* sender, const ui::Event& event) override; |
69 | 69 |
70 // Use bubble_border() and SetBubbleBorder(), not border() and SetBorder(). | 70 // Use bubble_border() and SetBubbleBorder(), not border() and SetBorder(). |
71 BubbleBorder* bubble_border() const { return bubble_border_; } | 71 BubbleBorder* bubble_border() const { return bubble_border_; } |
72 void SetBubbleBorder(std::unique_ptr<BubbleBorder> border); | 72 void SetBubbleBorder(std::unique_ptr<BubbleBorder> border); |
73 | 73 |
74 gfx::Insets content_margins() const { return content_margins_; } | 74 gfx::Insets content_margins() const { return content_margins_; } |
75 | 75 |
76 void SetFootnoteView(View* view); | 76 void SetFootnoteView(View* view); |
77 | 77 |
| 78 void RemoveFootnoteView(); |
| 79 |
78 // Given the size of the contents and the rect to point at, returns the bounds | 80 // Given the size of the contents and the rect to point at, returns the bounds |
79 // of the bubble window. The bubble's arrow location may change if the bubble | 81 // of the bubble window. The bubble's arrow location may change if the bubble |
80 // does not fit on the monitor and |adjust_if_offscreen| is true. | 82 // does not fit on the monitor and |adjust_if_offscreen| is true. |
81 gfx::Rect GetUpdatedWindowBounds(const gfx::Rect& anchor_rect, | 83 gfx::Rect GetUpdatedWindowBounds(const gfx::Rect& anchor_rect, |
82 const gfx::Size& client_size, | 84 const gfx::Size& client_size, |
83 bool adjust_if_offscreen); | 85 bool adjust_if_offscreen); |
84 | 86 |
85 bool close_button_clicked() const { return close_button_clicked_; } | 87 bool close_button_clicked() const { return close_button_clicked_; } |
86 | 88 |
87 Button* GetCloseButtonForTest() { return close_; } | 89 Button* GetCloseButtonForTest() { return close_; } |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 133 |
132 // Whether the close button was clicked. | 134 // Whether the close button was clicked. |
133 bool close_button_clicked_; | 135 bool close_button_clicked_; |
134 | 136 |
135 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); | 137 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); |
136 }; | 138 }; |
137 | 139 |
138 } // namespace views | 140 } // namespace views |
139 | 141 |
140 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ | 142 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ |
OLD | NEW |