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

Unified Diff: ios/shared/chrome/browser/ui/omnibox/location_bar_delegate.h

Issue 2796793003: [ios] Adds a LocationBarController interface. (Closed)
Patch Set: Review. Created 3 years, 8 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
Index: ios/shared/chrome/browser/ui/omnibox/location_bar_delegate.h
diff --git a/ios/shared/chrome/browser/ui/omnibox/location_bar_delegate.h b/ios/shared/chrome/browser/ui/omnibox/location_bar_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..b61567a367fb4330ac86338592877c651bf99886
--- /dev/null
+++ b/ios/shared/chrome/browser/ui/omnibox/location_bar_delegate.h
@@ -0,0 +1,29 @@
+// Copyright 2017 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_SHARED_CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_DELEGATE_H_
+#define IOS_SHARED_CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_DELEGATE_H_
+
+#import <Foundation/Foundation.h>
+
+namespace web {
+class WebState;
+}
+
+class ToolbarModel;
+
+// Delegate for LocationBarController objects. Used to provide the location bar
+// a way to open URLs and otherwise interact with the browser.
+@protocol LocationBarDelegate
+- (void)loadGURLFromLocationBar:(const GURL&)url
+ transition:(ui::PageTransition)transition;
+- (void)locationBarHasBecomeFirstResponder;
+- (void)locationBarHasResignedFirstResponder;
+- (void)locationBarBeganEdit;
+- (void)locationBarChanged;
+- (web::WebState*)getWebState;
+- (ToolbarModel*)toolbarModel;
+@end
+
+#endif // IOS_SHARED_CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698