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

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: rebase and nits Created 7 years, 6 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 | « no previous file | chrome/browser/ui/views/infobars/after_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) 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 autodetermined_source_language_;
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
« no previous file with comments | « no previous file | chrome/browser/ui/views/infobars/after_translate_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698