| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_CHOOSER_BUBBLE_UI_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_CHOOSER_BUBBLE_UI_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_CHOOSER_BUBBLE_UI_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_CHOOSER_BUBBLE_UI_VIEW_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 ChooserBubbleUiView(Browser* browser, | 29 ChooserBubbleUiView(Browser* browser, |
| 30 std::unique_ptr<ChooserController> chooser_controller); | 30 std::unique_ptr<ChooserController> chooser_controller); |
| 31 ~ChooserBubbleUiView() override; | 31 ~ChooserBubbleUiView() override; |
| 32 | 32 |
| 33 // BubbleUi: | 33 // BubbleUi: |
| 34 void Show(BubbleReference bubble_reference) override; | 34 void Show(BubbleReference bubble_reference) override; |
| 35 void Close() override; | 35 void Close() override; |
| 36 void UpdateAnchorPosition() override; | 36 void UpdateAnchorPosition() override; |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 friend class ChooserBubbleUiViewDelegate; | |
| 40 views::View* GetAnchorView(); | 39 views::View* GetAnchorView(); |
| 41 views::BubbleBorder::Arrow GetAnchorArrow(); | 40 views::BubbleBorder::Arrow GetAnchorArrow(); |
| 42 | 41 |
| 43 Browser* browser_; // Weak. | 42 Browser* browser_; // Weak. |
| 44 // Weak. Owned by its parent view. | 43 // Weak. Owned by its parent view. |
| 45 ChooserBubbleUiViewDelegate* chooser_bubble_ui_view_delegate_; | 44 ChooserBubbleUiViewDelegate* chooser_bubble_ui_view_delegate_; |
| 46 | 45 |
| 47 DISALLOW_COPY_AND_ASSIGN(ChooserBubbleUiView); | 46 DISALLOW_COPY_AND_ASSIGN(ChooserBubbleUiView); |
| 48 }; | 47 }; |
| 49 | 48 |
| 50 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_CHOOSER_BUBBLE_UI_VIEW_H_ | 49 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_CHOOSER_BUBBLE_UI_VIEW_H_ |
| OLD | NEW |