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

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

Issue 6574011: Cleanup:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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_BEFORE_TRANSLATE_INFOBAR_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_BEFORE_TRANSLATE_INFOBAR_H_
6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_BEFORE_TRANSLATE_INFOBAR_H_ 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_BEFORE_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 InfoBarTextButton;
15 class TranslateInfoBarDelegate; 14 class TranslateInfoBarDelegate;
16 namespace views { 15 namespace views {
17 class Menu2; 16 class Menu2;
18 class MenuButton; 17 class MenuButton;
19 } 18 }
20 19
21 class BeforeTranslateInfoBar : public TranslateInfoBarBase, 20 class BeforeTranslateInfoBar : public TranslateInfoBarBase,
22 public views::ViewMenuDelegate { 21 public views::ViewMenuDelegate {
23 public: 22 public:
24 explicit BeforeTranslateInfoBar(TranslateInfoBarDelegate* delegate); 23 explicit BeforeTranslateInfoBar(TranslateInfoBarDelegate* delegate);
(...skipping 10 matching lines...) Expand all
35 virtual void RunMenu(View* source, const gfx::Point& pt); 34 virtual void RunMenu(View* source, const gfx::Point& pt);
36 35
37 // The text displayed in the infobar is something like: 36 // The text displayed in the infobar is something like:
38 // "The page is in <lang>. Would you like to translate it?" 37 // "The page is in <lang>. Would you like to translate it?"
39 // ...where <lang> is a combobox. So the text is split in 2 chunks, each 38 // ...where <lang> is a combobox. So the text is split in 2 chunks, each
40 // displayed in one of the labels below. 39 // displayed in one of the labels below.
41 views::Label* label_1_; 40 views::Label* label_1_;
42 views::Label* label_2_; 41 views::Label* label_2_;
43 42
44 views::MenuButton* language_menu_button_; 43 views::MenuButton* language_menu_button_;
45 InfoBarTextButton* accept_button_; 44 views::TextButton* accept_button_;
46 InfoBarTextButton* deny_button_; 45 views::TextButton* deny_button_;
47 InfoBarTextButton* never_translate_button_; 46 views::TextButton* never_translate_button_;
48 InfoBarTextButton* always_translate_button_; 47 views::TextButton* always_translate_button_;
49 views::MenuButton* options_menu_button_; 48 views::MenuButton* options_menu_button_;
50 49
51 scoped_ptr<views::Menu2> languages_menu_; 50 scoped_ptr<views::Menu2> languages_menu_;
52 LanguagesMenuModel languages_menu_model_; 51 LanguagesMenuModel languages_menu_model_;
53 52
54 scoped_ptr<views::Menu2> options_menu_; 53 scoped_ptr<views::Menu2> options_menu_;
55 OptionsMenuModel options_menu_model_; 54 OptionsMenuModel options_menu_model_;
56 55
57 DISALLOW_COPY_AND_ASSIGN(BeforeTranslateInfoBar); 56 DISALLOW_COPY_AND_ASSIGN(BeforeTranslateInfoBar);
58 }; 57 };
59 58
60 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_BEFORE_TRANSLATE_INFOBAR_H_ 59 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_BEFORE_TRANSLATE_INFOBAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698