| 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_TOOLBAR_TEST_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_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 } | 29 } |
| 30 void set_learn_more_button_text(const base::string16& learn_more) { | 30 void set_learn_more_button_text(const base::string16& learn_more) { |
| 31 learn_more_ = learn_more; | 31 learn_more_ = learn_more; |
| 32 } | 32 } |
| 33 void set_item_list_text(const base::string16& item_list) { | 33 void set_item_list_text(const base::string16& item_list) { |
| 34 item_list_ = item_list; | 34 item_list_ = item_list; |
| 35 } | 35 } |
| 36 void set_close_on_deactivate(bool close_on_deactivate) { | 36 void set_close_on_deactivate(bool close_on_deactivate) { |
| 37 close_on_deactivate_ = close_on_deactivate; | 37 close_on_deactivate_ = close_on_deactivate; |
| 38 } | 38 } |
| 39 void set_extra_view_info( |
| 40 const ToolbarActionsBarBubbleDelegate::ExtraViewInfo& extra_view_info) { |
| 41 extra_view_info_ = extra_view_info; |
| 42 } |
| 39 | 43 |
| 40 const ToolbarActionsBarBubbleDelegate::CloseAction* close_action() const { | 44 const ToolbarActionsBarBubbleDelegate::CloseAction* close_action() const { |
| 41 return close_action_.get(); | 45 return close_action_.get(); |
| 42 } | 46 } |
| 43 bool shown() const { return shown_; } | 47 bool shown() const { return shown_; } |
| 44 | 48 |
| 45 private: | 49 private: |
| 46 class DelegateImpl; | 50 class DelegateImpl; |
| 47 | 51 |
| 48 // Whether or not the bubble has been shown. | 52 // Whether or not the bubble has been shown. |
| 49 bool shown_; | 53 bool shown_; |
| 50 | 54 |
| 51 // The action that was taken to close the bubble. | 55 // The action that was taken to close the bubble. |
| 52 std::unique_ptr<ToolbarActionsBarBubbleDelegate::CloseAction> close_action_; | 56 std::unique_ptr<ToolbarActionsBarBubbleDelegate::CloseAction> close_action_; |
| 53 | 57 |
| 54 // Strings for the bubble. | 58 // Strings for the bubble. |
| 55 base::string16 heading_; | 59 base::string16 heading_; |
| 56 base::string16 body_; | 60 base::string16 body_; |
| 57 base::string16 action_; | 61 base::string16 action_; |
| 58 base::string16 dismiss_; | 62 base::string16 dismiss_; |
| 59 base::string16 learn_more_; | 63 base::string16 learn_more_; |
| 60 base::string16 item_list_; | 64 base::string16 item_list_; |
| 61 | 65 |
| 62 // Whether to close the bubble on deactivation. | 66 // Whether to close the bubble on deactivation. |
| 63 bool close_on_deactivate_; | 67 bool close_on_deactivate_; |
| 64 | 68 |
| 69 // Extra view information inputted into the bubble. |
| 70 ToolbarActionsBarBubbleDelegate::ExtraViewInfo extra_view_info_; |
| 71 |
| 65 DISALLOW_COPY_AND_ASSIGN(TestToolbarActionsBarBubbleDelegate); | 72 DISALLOW_COPY_AND_ASSIGN(TestToolbarActionsBarBubbleDelegate); |
| 66 }; | 73 }; |
| 67 | 74 |
| 68 #endif // CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_ | 75 #endif // CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_ |
| OLD | NEW |