Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ios / public / provider / chrome / browser / ui / infobar_view_delegate.h
blobf694f337e82c0e84f826057fcebcde636ecbeccb
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.
5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_UI_INFOBAR_VIEW_DELEGATE_H_
6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_UI_INFOBAR_VIEW_DELEGATE_H_
8 #import <Foundation/Foundation.h>
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;
16 // Notifies that the close button was pressed.
17 virtual void InfoBarDidCancel() = 0;
19 // Notifies that an infobar button was pressed.
20 virtual void InfoBarButtonDidPress(NSUInteger button_id) = 0;
22 protected:
23 virtual ~InfoBarViewDelegate() {}
26 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_UI_INFOBAR_VIEW_DELEGATE_H_