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

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

Issue 7745057: Speculative fix for 93314. I suspect the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/infobars/before_translate_infobar.cc » ('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) 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 TranslateInfoBarDelegate; 14 class TranslateInfoBarDelegate;
15 namespace views { 15 namespace views {
16 class MenuButton; 16 class MenuButton;
17 class MenuRunner;
17 } 18 }
18 19
19 class BeforeTranslateInfoBar : public TranslateInfoBarBase, 20 class BeforeTranslateInfoBar : public TranslateInfoBarBase,
20 public views::ViewMenuDelegate { 21 public views::ViewMenuDelegate {
21 public: 22 public:
22 BeforeTranslateInfoBar(TabContentsWrapper* owner, 23 BeforeTranslateInfoBar(TabContentsWrapper* owner,
23 TranslateInfoBarDelegate* delegate); 24 TranslateInfoBarDelegate* delegate);
24 25
25 private: 26 private:
26 virtual ~BeforeTranslateInfoBar(); 27 virtual ~BeforeTranslateInfoBar();
(...skipping 18 matching lines...) Expand all
45 views::MenuButton* language_menu_button_; 46 views::MenuButton* language_menu_button_;
46 views::TextButton* accept_button_; 47 views::TextButton* accept_button_;
47 views::TextButton* deny_button_; 48 views::TextButton* deny_button_;
48 views::TextButton* never_translate_button_; 49 views::TextButton* never_translate_button_;
49 views::TextButton* always_translate_button_; 50 views::TextButton* always_translate_button_;
50 views::MenuButton* options_menu_button_; 51 views::MenuButton* options_menu_button_;
51 52
52 LanguagesMenuModel languages_menu_model_; 53 LanguagesMenuModel languages_menu_model_;
53 OptionsMenuModel options_menu_model_; 54 OptionsMenuModel options_menu_model_;
54 55
56 scoped_ptr<views::MenuRunner> menu_runner_;
57
55 DISALLOW_COPY_AND_ASSIGN(BeforeTranslateInfoBar); 58 DISALLOW_COPY_AND_ASSIGN(BeforeTranslateInfoBar);
56 }; 59 };
57 60
58 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_BEFORE_TRANSLATE_INFOBAR_H_ 61 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_BEFORE_TRANSLATE_INFOBAR_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/infobars/before_translate_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698