OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_CHOOSER_CONTENT_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_CHOOSER_CONTENT_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_CHOOSER_CONTENT_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_CHOOSER_CONTENT_VIEW_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
71 views::Link* CreateExtraView(); | 71 views::Link* CreateExtraView(); |
72 // Ownership of the view is passed to the caller. | 72 // Ownership of the view is passed to the caller. |
73 views::StyledLabel* CreateFootnoteView(); | 73 views::StyledLabel* CreateFootnoteView(); |
74 void Accept(); | 74 void Accept(); |
75 void Cancel(); | 75 void Cancel(); |
76 void Close(); | 76 void Close(); |
77 void UpdateTableView(); | 77 void UpdateTableView(); |
78 | 78 |
79 views::TableView* table_view_for_test() const { return table_view_; } | 79 views::TableView* table_view_for_test() const { return table_view_; } |
80 views::Throbber* throbber_for_test() const { return throbber_; } | 80 views::Throbber* throbber_for_test() const { return throbber_; } |
81 views::Link* turn_adapter_off_help_for_test() const { | 81 views::StyledLabel* turn_adapter_off_help_for_test() const { |
82 return turn_adapter_off_help_; | 82 return turn_adapter_off_help_; |
83 } | 83 } |
84 | 84 |
85 private: | 85 private: |
86 std::unique_ptr<ChooserController> chooser_controller_; | 86 std::unique_ptr<ChooserController> chooser_controller_; |
87 views::TableView* table_view_ = nullptr; // Weak. | 87 views::TableView* table_view_ = nullptr; // Weak. |
sky
2016/10/24 16:26:40
optional: IMO trying to format these comments to a
juncai
2016/10/24 18:51:44
Done.
| |
88 views::View* table_parent_ = nullptr; // Weak. | 88 views::View* table_parent_ = nullptr; // Weak. |
89 views::Throbber* throbber_ = nullptr; // Weak. | 89 views::StyledLabel* turn_adapter_off_help_ = nullptr; // Weak. |
90 views::Link* turn_adapter_off_help_ = nullptr; // Weak. | 90 views::Throbber* throbber_ = nullptr; // Weak. |
91 views::Link* discovery_state_ = nullptr; // Weak. | 91 views::Link* discovery_state_ = nullptr; // Weak. |
92 views::StyledLabel* styled_label_ = nullptr; // Weak. | 92 views::StyledLabel* help_link_ = nullptr; // Weak. |
93 | 93 |
94 DISALLOW_COPY_AND_ASSIGN(ChooserContentView); | 94 DISALLOW_COPY_AND_ASSIGN(ChooserContentView); |
95 }; | 95 }; |
96 | 96 |
97 #endif // CHROME_BROWSER_UI_VIEWS_CHOOSER_CONTENT_VIEW_H_ | 97 #endif // CHROME_BROWSER_UI_VIEWS_CHOOSER_CONTENT_VIEW_H_ |
OLD | NEW |