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

Side by Side Diff: chrome/browser/ui/views/chooser_content_view.h

Issue 2171103002: Add test for WebBluetooth chooser spinner, status text and rescan button (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 4 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 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
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::StyledLabel* styled_label_for_test() const { return styled_label_; } 74 views::Throbber* throbber_for_test() const { return throbber_; }
75 75
76 private: 76 private:
77 std::unique_ptr<ChooserController> chooser_controller_; 77 std::unique_ptr<ChooserController> chooser_controller_;
78 views::TableView* table_view_; // Weak. 78 views::TableView* table_view_; // Weak.
79 views::Throbber* throbber_; // Weak. 79 views::Throbber* throbber_; // Weak.
80 views::Link* discovery_state_ = nullptr; // Weak. 80 views::Link* discovery_state_ = nullptr; // Weak.
81 views::StyledLabel* styled_label_ = nullptr; // Weak. 81 views::StyledLabel* styled_label_ = nullptr; // Weak.
82 82
83 DISALLOW_COPY_AND_ASSIGN(ChooserContentView); 83 DISALLOW_COPY_AND_ASSIGN(ChooserContentView);
84 }; 84 };
85 85
86 #endif // CHROME_BROWSER_UI_VIEWS_CHOOSER_CONTENT_VIEW_H_ 86 #endif // CHROME_BROWSER_UI_VIEWS_CHOOSER_CONTENT_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chooser_controller/mock_chooser_controller.cc ('k') | chrome/browser/ui/views/chooser_content_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698