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

Unified Diff: ios/chrome/browser/ui/toolbar/toolbar_owner.h

Issue 2588733002: Upstream Chrome on iOS source code [9/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/toolbar/toolbar_owner.h
diff --git a/ios/chrome/browser/ui/toolbar/toolbar_owner.h b/ios/chrome/browser/ui/toolbar/toolbar_owner.h
new file mode 100644
index 0000000000000000000000000000000000000000..fdca2ea45e53690d1e962990b67eee57518ed9e5
--- /dev/null
+++ b/ios/chrome/browser/ui/toolbar/toolbar_owner.h
@@ -0,0 +1,29 @@
+// Copyright 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_TOOLBAR_TOOLBAR_OWNER_H_
+#define IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_OWNER_H_
+
+#import <Foundation/Foundation.h>
+
+@class ToolbarController;
+
+@protocol ToolbarOwner<NSObject>
+
+// Returns a reference to the toolbar controller so that it can be included in
+// animations. Calls should be paired with calls to |-reparentToolbarController|
+// when the relinquished toolbar controller is no longer needed by the caller.
+// Returns nil if called when the toolbar has already been relinquished.
+- (ToolbarController*)relinquishedToolbarController;
+// Reparents the toolbar into its place in the view hierarchy before it was
+// relinquished.
+- (void)reparentToolbarController;
+
+@optional
+// Returns the height of the toolbar owned by the implementing class.
+- (CGFloat)toolbarHeight;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_OWNER_H_
« no previous file with comments | « ios/chrome/browser/ui/toolbar/toolbar_model_ios.h ('k') | ios/chrome/browser/ui/toolbar/toolbar_resource_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698