| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 // views::StyledLabelListener: | 56 // views::StyledLabelListener: |
| 57 void StyledLabelLinkClicked(views::StyledLabel* label, | 57 void StyledLabelLinkClicked(views::StyledLabel* label, |
| 58 const gfx::Range& range, | 58 const gfx::Range& range, |
| 59 int event_flags) override; | 59 int event_flags) override; |
| 60 | 60 |
| 61 base::string16 GetWindowTitle() const; | 61 base::string16 GetWindowTitle() const; |
| 62 base::string16 GetDialogButtonLabel(ui::DialogButton button) const; | 62 base::string16 GetDialogButtonLabel(ui::DialogButton button) const; |
| 63 bool IsDialogButtonEnabled(ui::DialogButton button) const; | 63 bool IsDialogButtonEnabled(ui::DialogButton button) const; |
| 64 // Ownership of the view is passed to the caller. | 64 // Ownership of the view is passed to the caller. |
| 65 views::View* CreateExtraView(); | 65 views::Link* CreateExtraView(); |
| 66 // Ownership of the view is passed to the caller. | 66 // Ownership of the view is passed to the caller. |
| 67 views::StyledLabel* CreateFootnoteView(); | 67 views::StyledLabel* CreateFootnoteView(); |
| 68 void Accept(); | 68 void Accept(); |
| 69 void Cancel(); | 69 void Cancel(); |
| 70 void Close(); | 70 void Close(); |
| 71 void UpdateTableView(); | 71 void UpdateTableView(); |
| 72 | 72 |
| 73 views::TableView* table_view_for_test() const { return table_view_; } | 73 views::TableView* table_view_for_test() const { return table_view_; } |
| 74 views::Throbber* throbber_for_test() const { return throbber_; } |
| 75 views::Link* discovery_state_for_test() const { return discovery_state_; } |
| 74 views::StyledLabel* styled_label_for_test() const { return styled_label_; } | 76 views::StyledLabel* styled_label_for_test() const { return styled_label_; } |
| 75 | 77 |
| 76 private: | 78 private: |
| 77 std::unique_ptr<ChooserController> chooser_controller_; | 79 std::unique_ptr<ChooserController> chooser_controller_; |
| 78 views::TableView* table_view_; // Weak. | 80 views::TableView* table_view_; // Weak. |
| 79 views::Throbber* throbber_; // Weak. | 81 views::Throbber* throbber_; // Weak. |
| 80 views::Link* discovery_state_ = nullptr; // Weak. | 82 views::Link* discovery_state_ = nullptr; // Weak. |
| 81 views::StyledLabel* styled_label_ = nullptr; // Weak. | 83 views::StyledLabel* styled_label_ = nullptr; // Weak. |
| 82 | 84 |
| 83 DISALLOW_COPY_AND_ASSIGN(ChooserContentView); | 85 DISALLOW_COPY_AND_ASSIGN(ChooserContentView); |
| 84 }; | 86 }; |
| 85 | 87 |
| 86 #endif // CHROME_BROWSER_UI_VIEWS_CHOOSER_CONTENT_VIEW_H_ | 88 #endif // CHROME_BROWSER_UI_VIEWS_CHOOSER_CONTENT_VIEW_H_ |
| OLD | NEW |