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

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

Issue 15376008: Translate (Win): add after infobar UI for server side language detection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tr_menu_enable
Patch Set: fix crash bug Created 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include "chrome/browser/translate/options_menu_model.h" 8 #include "chrome/browser/translate/options_menu_model.h"
9 #include "chrome/browser/ui/views/infobars/translate_infobar_base.h" 9 #include "chrome/browser/ui/views/infobars/translate_infobar_base.h"
10 #include "chrome/browser/ui/views/infobars/translate_language_menu_model.h" 10 #include "chrome/browser/ui/views/infobars/translate_language_menu_model.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 views::LabelButton* revert_button_; 49 views::LabelButton* revert_button_;
50 views::MenuButton* options_menu_button_; 50 views::MenuButton* options_menu_button_;
51 51
52 scoped_ptr<TranslateLanguageMenuModel> original_language_menu_model_; 52 scoped_ptr<TranslateLanguageMenuModel> original_language_menu_model_;
53 scoped_ptr<TranslateLanguageMenuModel> target_language_menu_model_; 53 scoped_ptr<TranslateLanguageMenuModel> target_language_menu_model_;
54 OptionsMenuModel options_menu_model_; 54 OptionsMenuModel options_menu_model_;
55 55
56 // True if the target language comes before the original one. 56 // True if the target language comes before the original one.
57 bool swapped_language_buttons_; 57 bool swapped_language_buttons_;
58 58
59 // True if the source language is expected to be determined by a server.
60 bool translate_with_auto_;
Peter Kasting 2013/05/22 23:30:00 I'm not sure what "translate with auto" is suppose
Takashi Toyoshima 2013/05/23 14:13:27 Done.
61
59 DISALLOW_COPY_AND_ASSIGN(AfterTranslateInfoBar); 62 DISALLOW_COPY_AND_ASSIGN(AfterTranslateInfoBar);
60 }; 63 };
61 64
62 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_ 65 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698