| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_SHARED_CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_DELEGATE_H_ |
| 6 #define IOS_SHARED_CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_DELEGATE_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 namespace web { |
| 11 class WebState; |
| 12 } |
| 13 |
| 14 class ToolbarModel; |
| 15 |
| 16 // Delegate for LocationBarController objects. Used to provide the location bar |
| 17 // a way to open URLs and otherwise interact with the browser. |
| 18 @protocol LocationBarDelegate |
| 19 - (void)loadGURLFromLocationBar:(const GURL&)url |
| 20 transition:(ui::PageTransition)transition; |
| 21 - (void)locationBarHasBecomeFirstResponder; |
| 22 - (void)locationBarHasResignedFirstResponder; |
| 23 - (void)locationBarBeganEdit; |
| 24 - (void)locationBarChanged; |
| 25 - (web::WebState*)getWebState; |
| 26 - (ToolbarModel*)toolbarModel; |
| 27 @end |
| 28 |
| 29 #endif // IOS_SHARED_CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_DELEGATE_H_ |
| OLD | NEW |