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