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

Side by Side Diff: chrome/browser/ui/cocoa/chooser_content_view_cocoa.h

Issue 2304213002: Show device connection and paired status in chooser on Mac (Closed)
Patch Set: added comments Created 4 years, 3 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_COCOA_CHOOSER_CONTENT_VIEW_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_CHOOSER_CONTENT_VIEW_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_CHOOSER_CONTENT_VIEW_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_CHOOSER_CONTENT_VIEW_COCOA_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 // Designated initializer. 65 // Designated initializer.
66 - (instancetype)initWithChooserTitle:(NSString*)chooserTitle 66 - (instancetype)initWithChooserTitle:(NSString*)chooserTitle
67 chooserController: 67 chooserController:
68 (std::unique_ptr<ChooserController>)chooserController; 68 (std::unique_ptr<ChooserController>)chooserController;
69 69
70 // Creates the title for the chooser. 70 // Creates the title for the chooser.
71 - (base::scoped_nsobject<NSTextField>)createChooserTitle:(NSString*)title; 71 - (base::scoped_nsobject<NSTextField>)createChooserTitle:(NSString*)title;
72 72
73 // Creates a table row view for the chooser. 73 // Creates a table row view for the chooser.
74 - (base::scoped_nsobject<NSView>)createTableRowView:(NSInteger)rowIndex; 74 - (base::scoped_nsobject<NSView>)createTableRowView:(NSInteger)row;
75 75
76 // The height of a table row view. 76 // The height of a table row view.
77 - (CGFloat)tableRowViewHeight:(NSInteger)row; 77 - (CGFloat)tableRowViewHeight:(NSInteger)row;
78 78
79 // Creates a button with |title|. 79 // Creates a button with |title|.
80 - (base::scoped_nsobject<NSButton>)createButtonWithTitle:(NSString*)title; 80 - (base::scoped_nsobject<NSButton>)createButtonWithTitle:(NSString*)title;
81 81
82 // Creates the "Connect" button. 82 // Creates the "Connect" button.
83 - (base::scoped_nsobject<NSButton>)createConnectButton; 83 - (base::scoped_nsobject<NSButton>)createConnectButton;
84 84
85 // Creates the "Cancel" button. 85 // Creates the "Cancel" button.
86 - (base::scoped_nsobject<NSButton>)createCancelButton; 86 - (base::scoped_nsobject<NSButton>)createCancelButton;
87 87
88 // Creates the separator. 88 // Creates the separator.
89 - (base::scoped_nsobject<NSBox>)createSeparator; 89 - (base::scoped_nsobject<NSBox>)createSeparator;
90 90
91 // Creates a text field with |text|.
92 - (base::scoped_nsobject<NSTextField>)createTextField:(NSString*)text;
93
94 // Creates a hyperlink button with |text|. 91 // Creates a hyperlink button with |text|.
95 - (base::scoped_nsobject<NSButton>)createHyperlinkButtonWithText: 92 - (base::scoped_nsobject<NSButton>)createHyperlinkButtonWithText:
96 (NSString*)text; 93 (NSString*)text;
97 94
98 // Calculates the frame for the |scrollView_|. 95 // Calculates the frame for the |scrollView_|.
99 - (NSRect)calculateScrollViewFrame:(CGFloat)buttonRowHeight; 96 - (NSRect)calculateScrollViewFrame:(CGFloat)buttonRowHeight;
100 97
101 // Calculates the origin for the |status_| text. 98 // Calculates the origin for the |status_| text.
102 - (NSPoint)calculateStatusOrigin:(CGFloat)buttonRowHeight; 99 - (NSPoint)calculateStatusOrigin:(CGFloat)buttonRowHeight;
103 100
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 154
158 // Called when the "Get help" button is pressed. 155 // Called when the "Get help" button is pressed.
159 - (void)onHelpPressed:(id)sender; 156 - (void)onHelpPressed:(id)sender;
160 157
161 // Gets the image from table row view. For testing only. 158 // Gets the image from table row view. For testing only.
162 - (NSImageView*)tableRowViewImage:(NSInteger)row; 159 - (NSImageView*)tableRowViewImage:(NSInteger)row;
163 160
164 // Gets the text from table row view. For testing only. 161 // Gets the text from table row view. For testing only.
165 - (NSTextField*)tableRowViewText:(NSInteger)row; 162 - (NSTextField*)tableRowViewText:(NSInteger)row;
166 163
164 // Gets the paired status from table row view. For testing only.
165 - (NSTextField*)tableRowViewPairedStatus:(NSInteger)row;
166
167 @end 167 @end
168 168
169 #endif // CHROME_BROWSER_UI_COCOA_CHOOSER_CONTENT_VIEW_COCOA_H_ 169 #endif // CHROME_BROWSER_UI_COCOA_CHOOSER_CONTENT_VIEW_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/bluetooth/bluetooth_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