| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "chrome/browser/ui/views/translate/translate_bubble_view.h" | 5 #include "chrome/browser/ui/views/translate/translate_bubble_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "chrome/browser/ui/translate/translate_bubble_model_impl.h" | 21 #include "chrome/browser/ui/translate/translate_bubble_model_impl.h" |
| 22 #include "chrome/common/url_constants.h" | 22 #include "chrome/common/url_constants.h" |
| 23 #include "components/translate/core/browser/translate_download_manager.h" | 23 #include "components/translate/core/browser/translate_download_manager.h" |
| 24 #include "components/translate/core/browser/translate_manager.h" | 24 #include "components/translate/core/browser/translate_manager.h" |
| 25 #include "components/translate/core/browser/translate_ui_delegate.h" | 25 #include "components/translate/core/browser/translate_ui_delegate.h" |
| 26 #include "content/public/browser/web_contents.h" | 26 #include "content/public/browser/web_contents.h" |
| 27 #include "grit/generated_resources.h" | 27 #include "grit/generated_resources.h" |
| 28 #include "ui/base/l10n/l10n_util.h" | 28 #include "ui/base/l10n/l10n_util.h" |
| 29 #include "ui/base/models/combobox_model.h" | 29 #include "ui/base/models/combobox_model.h" |
| 30 #include "ui/base/models/simple_combobox_model.h" | 30 #include "ui/base/models/simple_combobox_model.h" |
| 31 #include "ui/base/resource/resource_bundle.h" | |
| 32 #include "ui/views/controls/button/checkbox.h" | 31 #include "ui/views/controls/button/checkbox.h" |
| 33 #include "ui/views/controls/button/label_button.h" | 32 #include "ui/views/controls/button/label_button.h" |
| 34 #include "ui/views/controls/combobox/combobox.h" | 33 #include "ui/views/controls/combobox/combobox.h" |
| 35 #include "ui/views/controls/label.h" | 34 #include "ui/views/controls/label.h" |
| 36 #include "ui/views/controls/link.h" | 35 #include "ui/views/controls/link.h" |
| 37 #include "ui/views/layout/box_layout.h" | 36 #include "ui/views/layout/box_layout.h" |
| 38 #include "ui/views/layout/grid_layout.h" | 37 #include "ui/views/layout/grid_layout.h" |
| 39 #include "ui/views/layout/layout_constants.h" | 38 #include "ui/views/layout/layout_constants.h" |
| 40 #include "ui/views/widget/widget.h" | 39 #include "ui/views/widget/widget.h" |
| 41 | 40 |
| (...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 762 model_->ShouldAlwaysTranslate()); | 761 model_->ShouldAlwaysTranslate()); |
| 763 } | 762 } |
| 764 | 763 |
| 765 base::string16 label; | 764 base::string16 label; |
| 766 if (model_->IsPageTranslatedInCurrentLanguages()) | 765 if (model_->IsPageTranslatedInCurrentLanguages()) |
| 767 label = l10n_util::GetStringUTF16(IDS_DONE); | 766 label = l10n_util::GetStringUTF16(IDS_DONE); |
| 768 else | 767 else |
| 769 label = l10n_util::GetStringUTF16(IDS_TRANSLATE_BUBBLE_ACCEPT); | 768 label = l10n_util::GetStringUTF16(IDS_TRANSLATE_BUBBLE_ACCEPT); |
| 770 advanced_done_button_->SetText(label); | 769 advanced_done_button_->SetText(label); |
| 771 } | 770 } |
| OLD | NEW |