| OLD | NEW |
| (Empty) |
| 1 // Copyright 2013 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_PUBLIC_PROVIDER_CHROME_BROWSER_UI_INFOBAR_VIEW_DELEGATE_H_ | |
| 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_UI_INFOBAR_VIEW_DELEGATE_H_ | |
| 7 | |
| 8 #import <Foundation/Foundation.h> | |
| 9 | |
| 10 // Interface for delegating events from infobar. | |
| 11 class InfoBarViewDelegate { | |
| 12 public: | |
| 13 // Notifies that the target size has been changed (e.g. after rotation). | |
| 14 virtual void SetInfoBarTargetHeight(int height) = 0; | |
| 15 | |
| 16 // Notifies that the close button was pressed. | |
| 17 virtual void InfoBarDidCancel() = 0; | |
| 18 | |
| 19 // Notifies that an infobar button was pressed. | |
| 20 virtual void InfoBarButtonDidPress(NSUInteger button_id) = 0; | |
| 21 | |
| 22 protected: | |
| 23 virtual ~InfoBarViewDelegate() {} | |
| 24 }; | |
| 25 | |
| 26 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_UI_INFOBAR_VIEW_DELEGATE_H_ | |
| OLD | NEW |