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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 void SetTitleView(std::unique_ptr<View> title_view); | 53 void SetTitleView(std::unique_ptr<View> title_view); |
54 | 54 |
55 // View: | 55 // View: |
56 const char* GetClassName() const override; | 56 const char* GetClassName() const override; |
57 gfx::Insets GetInsets() const override; | 57 gfx::Insets GetInsets() const override; |
58 gfx::Size CalculatePreferredSize() const override; | 58 gfx::Size CalculatePreferredSize() const override; |
59 gfx::Size GetMinimumSize() const override; | 59 gfx::Size GetMinimumSize() const override; |
60 gfx::Size GetMaximumSize() const override; | 60 gfx::Size GetMaximumSize() const override; |
61 void Layout() override; | 61 void Layout() override; |
62 void OnPaint(gfx::Canvas* canvas) override; | 62 void OnPaint(gfx::Canvas* canvas) override; |
63 void PaintChildren(const ui::PaintContext& context) override; | 63 void PaintChildren(const ui::PaintInfo& paint_info) override; |
64 void OnThemeChanged() override; | 64 void OnThemeChanged() override; |
65 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; | 65 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; |
66 void ViewHierarchyChanged( | 66 void ViewHierarchyChanged( |
67 const ViewHierarchyChangedDetails& details) override; | 67 const ViewHierarchyChangedDetails& details) override; |
68 | 68 |
69 // ButtonListener: | 69 // ButtonListener: |
70 void ButtonPressed(Button* sender, const ui::Event& event) override; | 70 void ButtonPressed(Button* sender, const ui::Event& event) override; |
71 | 71 |
72 // Use bubble_border() and SetBubbleBorder(), not border() and SetBorder(). | 72 // Use bubble_border() and SetBubbleBorder(), not border() and SetBorder(). |
73 BubbleBorder* bubble_border() const { return bubble_border_; } | 73 BubbleBorder* bubble_border() const { return bubble_border_; } |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 | 149 |
150 // Whether the close button was clicked. | 150 // Whether the close button was clicked. |
151 bool close_button_clicked_; | 151 bool close_button_clicked_; |
152 | 152 |
153 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); | 153 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); |
154 }; | 154 }; |
155 | 155 |
156 } // namespace views | 156 } // namespace views |
157 | 157 |
158 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ | 158 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ |
OLD | NEW |