Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Side by Side Diff: chrome/browser/ui/toolbar/test_toolbar_actions_bar_bubble_delegate.h

Issue 1858773006: [Extensions UI] Use the ExtensionMessageBubbleBridge for Views platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 15 matching lines...) Expand all
26 26
27 void set_dismiss_button_text(const base::string16& dismiss) { 27 void set_dismiss_button_text(const base::string16& dismiss) {
28 dismiss_ = dismiss; 28 dismiss_ = dismiss;
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) {
37 close_on_deactivate_ = close_on_deactivate;
38 }
36 39
37 const ToolbarActionsBarBubbleDelegate::CloseAction* close_action() const { 40 const ToolbarActionsBarBubbleDelegate::CloseAction* close_action() const {
38 return close_action_.get(); 41 return close_action_.get();
39 } 42 }
40 bool shown() const { return shown_; } 43 bool shown() const { return shown_; }
41 44
42 private: 45 private:
43 class DelegateImpl; 46 class DelegateImpl;
44 47
45 // Whether or not the bubble has been shown. 48 // Whether or not the bubble has been shown.
46 bool shown_; 49 bool shown_;
47 50
48 // The action that was taken to close the bubble. 51 // The action that was taken to close the bubble.
49 std::unique_ptr<ToolbarActionsBarBubbleDelegate::CloseAction> close_action_; 52 std::unique_ptr<ToolbarActionsBarBubbleDelegate::CloseAction> close_action_;
50 53
51 // Strings for the bubble. 54 // Strings for the bubble.
52 base::string16 heading_; 55 base::string16 heading_;
53 base::string16 body_; 56 base::string16 body_;
54 base::string16 action_; 57 base::string16 action_;
55 base::string16 dismiss_; 58 base::string16 dismiss_;
56 base::string16 learn_more_; 59 base::string16 learn_more_;
57 base::string16 item_list_; 60 base::string16 item_list_;
58 61
62 // Whether to close the bubble on deactivation.
63 bool close_on_deactivate_;
64
59 DISALLOW_COPY_AND_ASSIGN(TestToolbarActionsBarBubbleDelegate); 65 DISALLOW_COPY_AND_ASSIGN(TestToolbarActionsBarBubbleDelegate);
60 }; 66 };
61 67
62 #endif // CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_ 68 #endif // CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698