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

Unified Diff: ios/public/provider/chrome/browser/ui/logo_vendor.h

Issue 2456013003: [ios] Adds the LogoVendor protocol. (Closed)
Patch Set: Fix GN. Created 4 years, 2 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
« no previous file with comments | « ios/public/provider/chrome/browser/chrome_browser_provider.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/public/provider/chrome/browser/ui/logo_vendor.h
diff --git a/ios/public/provider/chrome/browser/ui/logo_vendor.h b/ios/public/provider/chrome/browser/ui/logo_vendor.h
new file mode 100644
index 0000000000000000000000000000000000000000..30c868326539f5944a70e803ddf6fcc09af85e93
--- /dev/null
+++ b/ios/public/provider/chrome/browser/ui/logo_vendor.h
@@ -0,0 +1,27 @@
+// 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_PUBLIC_PROVIDER_CHROME_BROWSER_UI_LOGO_VENDOR_H_
+#define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_UI_LOGO_VENDOR_H_
+
+#import "ios/public/provider/chrome/browser/voice/logo_animation_controller.h"
+
+@class UIView;
+
+// Defines a controller whose view contains a doodle or search engine logo.
+@protocol LogoVendor<LogoAnimationControllerOwnerOwner, NSObject>
sdefresne 2016/10/28 11:27:06 Do you need to inherit from NSObject protocol? I t
rohitrao (ping after 24h) 2016/10/28 11:31:58 I think I can get away without it, but I'd like to
+
+// View that shows a doodle or a search engine logo.
+@property(nonatomic, readonly) UIView* view;
+
+// Whether or not the logo should be shown. Defaults to YES.
+@property(nonatomic, assign, getter=isShowingLogo) BOOL showingLogo;
+
+// Checks for a new doodle. Calling this method frequently will result in a
+// query being issued at most once per hour.
+- (void)fetchDoodle;
+
+@end
+
+#endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_UI_LOGO_VENDOR_H_
« no previous file with comments | « ios/public/provider/chrome/browser/chrome_browser_provider.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698