Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: chrome/browser/ui/views/infobars/translate_message_infobar.h

Issue 7796010: Attempt at fixing crash in menus shown from infobars. Here's what the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change comment and remove change to views Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 CHROME_BROWSER_UI_VIEWS_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_H_
6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_H_ 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/views/infobars/translate_infobar_base.h" 9 #include "chrome/browser/ui/views/infobars/translate_infobar_base.h"
10 10
11 class TranslateMessageInfoBar : public TranslateInfoBarBase { 11 class TranslateMessageInfoBar : public TranslateInfoBarBase {
12 public: 12 public:
13 TranslateMessageInfoBar(TabContentsWrapper* owner, 13 TranslateMessageInfoBar(TabContentsWrapper* owner,
14 TranslateInfoBarDelegate* delegate); 14 TranslateInfoBarDelegate* delegate);
15 15
16 private: 16 private:
17 virtual ~TranslateMessageInfoBar(); 17 virtual ~TranslateMessageInfoBar();
18 18
19 // TranslateInfoBarBase: 19 // TranslateInfoBarBase:
20 virtual void Layout(); 20 virtual void Layout() OVERRIDE;
21 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); 21 virtual void ViewHierarchyChanged(bool is_add,
22 virtual void ButtonPressed(views::Button* sender, const views::Event& event); 22 View* parent,
23 virtual int ContentMinimumWidth() const; 23 View* child) OVERRIDE;
24 virtual void ButtonPressed(views::Button* sender,
25 const views::Event& event) OVERRIDE;
26 virtual int ContentMinimumWidth() const OVERRIDE;
24 27
25 views::Label* label_; 28 views::Label* label_;
26 views::TextButton* button_; 29 views::TextButton* button_;
27 30
28 DISALLOW_COPY_AND_ASSIGN(TranslateMessageInfoBar); 31 DISALLOW_COPY_AND_ASSIGN(TranslateMessageInfoBar);
29 }; 32 };
30 33
31 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_H_ 34 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698