| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 void OnPaint(gfx::Canvas* canvas) override; | 63 void OnPaint(gfx::Canvas* canvas) override; |
| 64 void PaintChildren(const ui::PaintContext& context) override; | 64 void PaintChildren(const ui::PaintContext& context) override; |
| 65 void OnThemeChanged() override; | 65 void OnThemeChanged() override; |
| 66 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; | 66 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; |
| 67 | 67 |
| 68 // Overridden from ButtonListener: | 68 // Overridden from ButtonListener: |
| 69 void ButtonPressed(Button* sender, const ui::Event& event) override; | 69 void ButtonPressed(Button* sender, const ui::Event& event) override; |
| 70 | 70 |
| 71 // Use bubble_border() and SetBubbleBorder(), not border() and SetBorder(). | 71 // Use bubble_border() and SetBubbleBorder(), not border() and SetBorder(). |
| 72 BubbleBorder* bubble_border() const { return bubble_border_; } | 72 BubbleBorder* bubble_border() const { return bubble_border_; } |
| 73 void SetBubbleBorder(scoped_ptr<BubbleBorder> border); | 73 void SetBubbleBorder(std::unique_ptr<BubbleBorder> border); |
| 74 | 74 |
| 75 gfx::Insets content_margins() const { return content_margins_; } | 75 gfx::Insets content_margins() const { return content_margins_; } |
| 76 | 76 |
| 77 void SetFootnoteView(View* view); | 77 void SetFootnoteView(View* view); |
| 78 | 78 |
| 79 // Given the size of the contents and the rect to point at, returns the bounds | 79 // Given the size of the contents and the rect to point at, returns the bounds |
| 80 // of the bubble window. The bubble's arrow location may change if the bubble | 80 // of the bubble window. The bubble's arrow location may change if the bubble |
| 81 // does not fit on the monitor and |adjust_if_offscreen| is true. | 81 // does not fit on the monitor and |adjust_if_offscreen| is true. |
| 82 gfx::Rect GetUpdatedWindowBounds(const gfx::Rect& anchor_rect, | 82 gfx::Rect GetUpdatedWindowBounds(const gfx::Rect& anchor_rect, |
| 83 gfx::Size client_size, | 83 gfx::Size client_size, |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 // Whether the close button was clicked. | 131 // Whether the close button was clicked. |
| 132 bool close_button_clicked_; | 132 bool close_button_clicked_; |
| 133 | 133 |
| 134 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); | 134 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 } // namespace views | 137 } // namespace views |
| 138 | 138 |
| 139 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ | 139 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ |
| OLD | NEW |