1 // Copyright (c) 2011 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 CHROME_BROWSER_UI_VIEWS_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_H_
6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_H_
8 #include "chrome/browser/ui/views/infobars/translate_infobar_base.h"
10 class TranslateMessageInfoBar : public TranslateInfoBarBase {
12 TranslateMessageInfoBar(InfoBarService* owner,
13 TranslateInfoBarDelegate* delegate);
16 virtual ~TranslateMessageInfoBar();
18 // TranslateInfoBarBase:
19 virtual void Layout() OVERRIDE;
20 virtual void ViewHierarchyChanged(
21 const ViewHierarchyChangedDetails& details) OVERRIDE;
22 virtual void ButtonPressed(views::Button* sender,
23 const ui::Event& event) OVERRIDE;
24 virtual int ContentMinimumWidth() const OVERRIDE;
27 views::LabelButton* button_;
29 DISALLOW_COPY_AND_ASSIGN(TranslateMessageInfoBar);
32 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_H_