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

Unified Diff: ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.h

Issue 2589803002: Upstream Chrome on iOS source code [6/11]. (Closed)
Patch Set: Created 4 years 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: ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.h
diff --git a/ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.h b/ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.h
new file mode 100644
index 0000000000000000000000000000000000000000..f53141a29d54cb364d269269fb9dbc7da517dd58
--- /dev/null
+++ b/ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_POPUP_MATERIAL_ROW_H_
+#define IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_POPUP_MATERIAL_ROW_H_
+
+#import <UIKit/UIKit.h>
+
+@class OmniboxPopupTruncatingLabel;
+
+// View used to display an omnibox autocomplete match in the omnibox popup.
+@interface OmniboxPopupMaterialRow : UITableViewCell
+
+// A truncating version of the textLabel of a UITableViewCell.
+@property(nonatomic, readonly, retain)
+ OmniboxPopupTruncatingLabel* textTruncatingLabel;
+// A truncating version of the detailTextLabel of a UITableViewCell.
+@property(nonatomic, readonly, retain)
+ OmniboxPopupTruncatingLabel* detailTruncatingLabel;
+@property(nonatomic, readonly, retain) UIImageView* imageView;
+@property(nonatomic, readonly, retain) UIImageView* answerImageView;
+@property(nonatomic, readonly, retain) UIButton* appendButton;
+@property(nonatomic, readonly, retain) UIImageView* physicalWebImageView;
+@property(nonatomic, assign) CGFloat rowHeight;
+
+// Initialize the row with the given incognito state. The colors and styling are
+// dependent on whether or not the row is displayed in incognito mode.
+- (instancetype)initWithIncognito:(BOOL)incognito;
+
+// Update the match type icon with the supplied image ID and adjust its position
+// based on the current size of the row.
+- (void)updateLeftImage:(int)imageId;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_POPUP_MATERIAL_ROW_H_
« no previous file with comments | « ios/chrome/browser/ui/omnibox/location_bar_view_ios.mm ('k') | ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698