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. 4 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_H_ 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_H_ 7 #pragma once 8 9 #include "chrome/browser/ui/views/infobars/translate_infobar_base.h" 10 11 class TranslateMessageInfoBar : public TranslateInfoBarBase { 12 public: 13 explicit TranslateMessageInfoBar(TranslateInfoBarDelegate* delegate); 14 15 private: 16 virtual ~TranslateMessageInfoBar(); 17 18 // TranslateInfoBarBase: 19 virtual void Layout(); 20 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); 21 virtual void ButtonPressed(views::Button* sender, const views::Event& event); 22 virtual int ContentMinimumWidth() const; 23 24 views::Label* label_; 25 views::TextButton* button_; 26 27 DISALLOW_COPY_AND_ASSIGN(TranslateMessageInfoBar); 28 }; 29 30 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_H_ 31