OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #import "chrome/browser/ui/cocoa/translate/translate_bubble_controller.h" | 5 #import "chrome/browser/ui/cocoa/translate/translate_bubble_controller.h" |
6 | 6 |
7 #include "base/mac/foundation_util.h" | 7 #include "base/mac/foundation_util.h" |
8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
| 9 #include "base/macros.h" |
9 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
10 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 11 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
11 #import "chrome/browser/ui/cocoa/bubble_combobox.h" | 12 #import "chrome/browser/ui/cocoa/bubble_combobox.h" |
12 #import "chrome/browser/ui/cocoa/info_bubble_view.h" | 13 #import "chrome/browser/ui/cocoa/info_bubble_view.h" |
13 #import "chrome/browser/ui/cocoa/info_bubble_window.h" | 14 #import "chrome/browser/ui/cocoa/info_bubble_window.h" |
14 #import "chrome/browser/ui/cocoa/toolbar/toolbar_controller.h" | 15 #import "chrome/browser/ui/cocoa/toolbar/toolbar_controller.h" |
15 #include "chrome/browser/ui/translate/language_combobox_model.h" | 16 #include "chrome/browser/ui/translate/language_combobox_model.h" |
16 #include "chrome/browser/ui/translate/translate_bubble_model_impl.h" | 17 #include "chrome/browser/ui/translate/translate_bubble_model_impl.h" |
17 #include "chrome/grit/generated_resources.h" | 18 #include "chrome/grit/generated_resources.h" |
18 #include "components/translate/core/browser/translate_ui_delegate.h" | 19 #include "components/translate/core/browser/translate_ui_delegate.h" |
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
638 [self updateAdvancedView]; | 639 [self updateAdvancedView]; |
639 } | 640 } |
640 | 641 |
641 - (void)handleTargetLanguagePopUpButtonSelectedItemChanged:(id)sender { | 642 - (void)handleTargetLanguagePopUpButtonSelectedItemChanged:(id)sender { |
642 NSPopUpButton* button = base::mac::ObjCCastStrict<NSPopUpButton>(sender); | 643 NSPopUpButton* button = base::mac::ObjCCastStrict<NSPopUpButton>(sender); |
643 model_->UpdateTargetLanguageIndex([button indexOfSelectedItem]); | 644 model_->UpdateTargetLanguageIndex([button indexOfSelectedItem]); |
644 [self updateAdvancedView]; | 645 [self updateAdvancedView]; |
645 } | 646 } |
646 | 647 |
647 @end | 648 @end |
OLD | NEW |