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

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

Issue 3064026: Fix presubmit errors part 2. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: Created 10 years, 4 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
« no previous file with comments | « chrome/browser/sync/test_profile_sync_service.h ('k') | chrome/test/pyautolib/pyautolib.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_ 5 #ifndef CHROME_BROWSER_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_
6 #define CHROME_BROWSER_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_ 6 #define CHROME_BROWSER_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "app/menus/simple_menu_model.h" 11 #include "app/menus/simple_menu_model.h"
12 #include "chrome/browser/translate/languages_menu_model.h" 12 #include "chrome/browser/translate/languages_menu_model.h"
13 #include "chrome/browser/translate/options_menu_model.h" 13 #include "chrome/browser/translate/options_menu_model.h"
14 #include "chrome/browser/translate/translate_infobar_view.h" 14 #include "chrome/browser/translate/translate_infobar_view.h"
15 #include "chrome/browser/views/infobars/translate_infobar_base.h" 15 #include "chrome/browser/views/infobars/translate_infobar_base.h"
16 #include "views/controls/button/button.h" 16 #include "views/controls/button/button.h"
17 #include "views/controls/link.h" 17 #include "views/controls/link.h"
18 #include "views/controls/menu/view_menu_delegate.h" 18 #include "views/controls/menu/view_menu_delegate.h"
19 19
20 class InfoBarTextButton; 20 class InfoBarTextButton;
21 class TranslateInfoBarDelegate; 21 class TranslateInfoBarDelegate;
22 22
23 namespace views { 23 namespace views {
24 class Menu2; 24 class Menu2;
25 class MenuButton; 25 class MenuButton;
26 } 26 }
27 27
28 class AfterTranslateInfoBar : 28 class AfterTranslateInfoBar : public TranslateInfoBarBase,
29 public TranslateInfoBarBase, 29 public views::ViewMenuDelegate {
30 public views::ViewMenuDelegate {
31 public: 30 public:
32 explicit AfterTranslateInfoBar(TranslateInfoBarDelegate* delegate); 31 explicit AfterTranslateInfoBar(TranslateInfoBarDelegate* delegate);
33 virtual ~AfterTranslateInfoBar(); 32 virtual ~AfterTranslateInfoBar();
34 33
35 // Overridden from views::View: 34 // Overridden from views::View:
36 virtual void Layout(); 35 virtual void Layout();
37 36
38 // Overridden from TranslateInfoBarView: 37 // Overridden from TranslateInfoBarView:
39 virtual void OriginalLanguageChanged(); 38 virtual void OriginalLanguageChanged();
40 virtual void TargetLanguageChanged(); 39 virtual void TargetLanguageChanged();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 scoped_ptr<views::Menu2> options_menu_; 73 scoped_ptr<views::Menu2> options_menu_;
75 OptionsMenuModel options_menu_model_; 74 OptionsMenuModel options_menu_model_;
76 75
77 // True if the target language comes before the original one. 76 // True if the target language comes before the original one.
78 bool swapped_language_buttons_; 77 bool swapped_language_buttons_;
79 78
80 DISALLOW_COPY_AND_ASSIGN(AfterTranslateInfoBar); 79 DISALLOW_COPY_AND_ASSIGN(AfterTranslateInfoBar);
81 }; 80 };
82 81
83 #endif // CHROME_BROWSER_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_ 82 #endif // CHROME_BROWSER_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/test_profile_sync_service.h ('k') | chrome/test/pyautolib/pyautolib.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698