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 void OnRefreshStateChanged(bool refreshing) override; | 55 void OnRefreshStateChanged(bool refreshing) override; |
56 | 56 |
57 // views::StyledLabelListener: | 57 // views::StyledLabelListener: |
58 void StyledLabelLinkClicked(views::StyledLabel* label, | 58 void StyledLabelLinkClicked(views::StyledLabel* label, |
59 const gfx::Range& range, | 59 const gfx::Range& range, |
60 int event_flags) override; | 60 int event_flags) override; |
61 | 61 |
62 base::string16 GetWindowTitle() const; | 62 base::string16 GetWindowTitle() const; |
63 base::string16 GetDialogButtonLabel(ui::DialogButton button) const; | 63 base::string16 GetDialogButtonLabel(ui::DialogButton button) const; |
64 bool IsDialogButtonEnabled(ui::DialogButton button) const; | 64 bool IsDialogButtonEnabled(ui::DialogButton button) const; |
65 views::StyledLabel* footnote_link() { return footnote_link_.get(); } | 65 views::StyledLabel* footnote_link(); |
66 void Accept(); | 66 void Accept(); |
67 void Cancel(); | 67 void Cancel(); |
68 void Close(); | 68 void Close(); |
69 void UpdateTableView(); | 69 void UpdateTableView(); |
70 void SetGetHelpAndReScanLink(); | 70 void SetGetHelpAndReScanLink(); |
71 | 71 |
72 private: | 72 private: |
73 friend class ChooserContentViewTest; | 73 friend class ChooserContentViewTest; |
74 friend class ChooserDialogViewTest; | 74 friend class ChooserDialogViewTest; |
75 FRIEND_TEST_ALL_PREFIXES(ChooserContentViewTest, InitialState); | 75 FRIEND_TEST_ALL_PREFIXES(ChooserContentViewTest, InitialState); |
(...skipping 14 matching lines...) Expand all Loading... |
90 base::string16 help_text_; | 90 base::string16 help_text_; |
91 base::string16 help_and_scanning_text_; | 91 base::string16 help_and_scanning_text_; |
92 base::string16 help_and_re_scan_text_; | 92 base::string16 help_and_re_scan_text_; |
93 gfx::Range help_text_range_; | 93 gfx::Range help_text_range_; |
94 gfx::Range re_scan_text_range_; | 94 gfx::Range re_scan_text_range_; |
95 | 95 |
96 DISALLOW_COPY_AND_ASSIGN(ChooserContentView); | 96 DISALLOW_COPY_AND_ASSIGN(ChooserContentView); |
97 }; | 97 }; |
98 | 98 |
99 #endif // CHROME_BROWSER_UI_VIEWS_CHOOSER_CONTENT_VIEW_H_ | 99 #endif // CHROME_BROWSER_UI_VIEWS_CHOOSER_CONTENT_VIEW_H_ |
OLD | NEW |