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

Unified Diff: ios/chrome/browser/ui/icons/chrome_icon.h

Issue 2590473002: Upstream Chrome on iOS source code [5/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/icons/chrome_icon.h
diff --git a/ios/chrome/browser/ui/icons/chrome_icon.h b/ios/chrome/browser/ui/icons/chrome_icon.h
new file mode 100644
index 0000000000000000000000000000000000000000..dc24d26049441c485362b6828d2d563061a77fb6
--- /dev/null
+++ b/ios/chrome/browser/ui/icons/chrome_icon.h
@@ -0,0 +1,31 @@
+// Copyright 2016 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_ICONS_CHROME_ICON_H_
+#define IOS_CHROME_BROWSER_UI_ICONS_CHROME_ICON_H_
+
+#import <UIKit/UIKit.h>
+
+@interface ChromeIcon : NSObject
+
+// Commonly used icons. Icons that flip in RTL already have their
+// flipsForRightToLeftLayoutDirection
+// property set accordingly.
++ (UIImage*)backIcon;
++ (UIImage*)closeIcon;
++ (UIImage*)infoIcon;
++ (UIImage*)searchIcon;
++ (UIImage*)chevronIcon;
+
+// Returns a "template" UIBarButtonItem initialized with the given image.
+// The returned bar button item will have its image rendering mode set to
+// UIImageRenderingModeAlwaysTemplate and will thus take on the tint color of
+// its container.
++ (UIBarButtonItem*)templateBarButtonItemWithImage:(UIImage*)image
+ target:(id)target
+ action:(SEL)action;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_UI_ICONS_CHROME_ICON_H_
« no previous file with comments | « ios/chrome/browser/ui/history/tab_history_view_controller.mm ('k') | ios/chrome/browser/ui/icons/chrome_icon.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698