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

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

Issue 6989001: Misc. infobar stuff: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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_AFTER_TRANSLATE_INFOBAR_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_
6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_ 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/translate/languages_menu_model.h" 9 #include "chrome/browser/translate/languages_menu_model.h"
10 #include "chrome/browser/translate/options_menu_model.h" 10 #include "chrome/browser/translate/options_menu_model.h"
11 #include "chrome/browser/ui/views/infobars/translate_infobar_base.h" 11 #include "chrome/browser/ui/views/infobars/translate_infobar_base.h"
12 #include "views/controls/menu/view_menu_delegate.h" 12 #include "views/controls/menu/view_menu_delegate.h"
13 13
14 class TranslateInfoBarDelegate; 14 class TranslateInfoBarDelegate;
15 namespace views { 15 namespace views {
16 class Menu2; 16 class Menu2;
17 class MenuButton; 17 class MenuButton;
18 } 18 }
19 19
20 class AfterTranslateInfoBar : public TranslateInfoBarBase, 20 class AfterTranslateInfoBar : public TranslateInfoBarBase,
21 public views::ViewMenuDelegate { 21 public views::ViewMenuDelegate {
22 public: 22 public:
23 explicit AfterTranslateInfoBar(TranslateInfoBarDelegate* delegate); 23 AfterTranslateInfoBar(TabContentsWrapper* owner,
24 TranslateInfoBarDelegate* delegate);
24 25
25 private: 26 private:
26 virtual ~AfterTranslateInfoBar(); 27 virtual ~AfterTranslateInfoBar();
27 28
28 // TranslateInfoBarBase: 29 // TranslateInfoBarBase:
29 virtual void Layout(); 30 virtual void Layout();
30 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); 31 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child);
31 virtual void ButtonPressed(views::Button* sender, const views::Event& event); 32 virtual void ButtonPressed(views::Button* sender, const views::Event& event);
32 virtual int ContentMinimumWidth() const; 33 virtual int ContentMinimumWidth() const;
33 virtual void OriginalLanguageChanged(); 34 virtual void OriginalLanguageChanged();
(...skipping 24 matching lines...) Expand all
58 OptionsMenuModel options_menu_model_; 59 OptionsMenuModel options_menu_model_;
59 scoped_ptr<views::Menu2> options_menu_; 60 scoped_ptr<views::Menu2> options_menu_;
60 61
61 // True if the target language comes before the original one. 62 // True if the target language comes before the original one.
62 bool swapped_language_buttons_; 63 bool swapped_language_buttons_;
63 64
64 DISALLOW_COPY_AND_ASSIGN(AfterTranslateInfoBar); 65 DISALLOW_COPY_AND_ASSIGN(AfterTranslateInfoBar);
65 }; 66 };
66 67
67 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_ 68 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.h ('k') | chrome/browser/ui/views/infobars/after_translate_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698