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

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

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 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 7
8 #include "chrome/browser/ui/views/infobars/translate_infobar_base.h" 8 #include "chrome/browser/ui/views/infobars/translate_infobar_base.h"
9 9
10 class TranslateMessageInfoBar : public TranslateInfoBarBase { 10 class TranslateMessageInfoBar : public TranslateInfoBarBase {
11 public: 11 public:
12 explicit TranslateMessageInfoBar( 12 explicit TranslateMessageInfoBar(
13 scoped_ptr<TranslateInfoBarDelegate> delegate); 13 scoped_ptr<TranslateInfoBarDelegate> delegate);
14 14
15 private: 15 private:
16 virtual ~TranslateMessageInfoBar(); 16 virtual ~TranslateMessageInfoBar();
17 17
18 // TranslateInfoBarBase: 18 // TranslateInfoBarBase:
19 virtual void Layout() OVERRIDE; 19 virtual void Layout() OVERRIDE;
20 virtual void ViewHierarchyChanged( 20 virtual void ViewHierarchyChanged(
21 const ViewHierarchyChangedDetails& details) OVERRIDE; 21 const ViewHierarchyChangedDetails& details) OVERRIDE;
22 virtual void ButtonPressed(views::Button* sender, 22 virtual void ButtonPressed(views::Button* sender,
23 const ui::Event& event) OVERRIDE; 23 const ui::Event& event) OVERRIDE;
24 virtual int ContentMinimumWidth() OVERRIDE; 24 virtual int ContentMinimumWidth() const OVERRIDE;
25 25
26 // Returns the width of all content other than the label. Layout() uses this 26 // Returns the width of all content other than the label. Layout() uses this
27 // to determine how much space the label can take. 27 // to determine how much space the label can take.
28 int NonLabelWidth() const; 28 int NonLabelWidth() const;
29 29
30 views::Label* label_; 30 views::Label* label_;
31 views::LabelButton* button_; 31 views::LabelButton* button_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(TranslateMessageInfoBar); 33 DISALLOW_COPY_AND_ASSIGN(TranslateMessageInfoBar);
34 }; 34 };
35 35
36 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_H_ 36 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/infobars/infobar_view.cc ('k') | chrome/browser/ui/views/infobars/translate_message_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698