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