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

Unified Diff: chrome/browser/ui/cocoa/chooser_content_view_cocoa.h

Issue 2257743003: Add signal strength indicator icon to WebBluetooth chooser on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth_signal_strength
Patch Set: address more 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/chooser_content_view_cocoa.h
diff --git a/chrome/browser/ui/cocoa/chooser_content_view_cocoa.h b/chrome/browser/ui/cocoa/chooser_content_view_cocoa.h
index 42f09fb8f4ff6dcc3453e457b6c8af186a8bbce7..99a737779541a75e0bcf4984867b3976b38f4999 100644
--- a/chrome/browser/ui/cocoa/chooser_content_view_cocoa.h
+++ b/chrome/browser/ui/cocoa/chooser_content_view_cocoa.h
@@ -11,9 +11,9 @@
#include "base/mac/scoped_nsobject.h"
+class ChooserContentViewController;
class ChooserController;
@class SpinnerView;
-class ChooserContentViewController;
// A chooser content view class that user can select an option.
@interface ChooserContentViewCocoa : NSView {
@@ -70,6 +70,12 @@ class ChooserContentViewController;
// Creates the title for the chooser.
- (base::scoped_nsobject<NSTextField>)createChooserTitle:(NSString*)title;
+// Creates a table row view for the chooser.
+- (base::scoped_nsobject<NSView>)createTableRowView:(NSInteger)rowIndex;
+
+// The height of a table row view.
+- (CGFloat)tableRowViewHeight:(NSInteger)row;
+
// Creates a button with |title|.
- (base::scoped_nsobject<NSButton>)createButtonWithTitle:(NSString*)title;
@@ -152,6 +158,12 @@ class ChooserContentViewController;
// Called when the "Get help" button is pressed.
- (void)onHelpPressed:(id)sender;
+// Gets the image from table row view. For testing only.
+- (NSImageView*)tableRowViewImage:(NSInteger)row;
+
+// Gets the text from table row view. For testing only.
+- (NSTextField*)tableRowViewText:(NSInteger)row;
+
@end
#endif // CHROME_BROWSER_UI_COCOA_CHOOSER_CONTENT_VIEW_COCOA_H_
« no previous file with comments | « chrome/browser/chooser_controller/mock_chooser_controller.cc ('k') | chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698