| OLD | NEW |
| 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #import "base/memory/scoped_nsobject.h" | 7 #import "base/memory/scoped_nsobject.h" |
| 8 #import "base/string_util.h" | 8 #import "base/strings/string_util.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #import "chrome/app/chrome_command_ids.h" // For translate menu command ids. | 10 #import "chrome/app/chrome_command_ids.h" // For translate menu command ids. |
| 11 #include "chrome/browser/infobars/infobar_service.h" | 11 #include "chrome/browser/infobars/infobar_service.h" |
| 12 #import "chrome/browser/translate/translate_infobar_delegate.h" | 12 #import "chrome/browser/translate/translate_infobar_delegate.h" |
| 13 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" | 13 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" |
| 14 #import "chrome/browser/ui/cocoa/infobars/before_translate_infobar_controller.h" | 14 #import "chrome/browser/ui/cocoa/infobars/before_translate_infobar_controller.h" |
| 15 #import "chrome/browser/ui/cocoa/infobars/infobar.h" | 15 #import "chrome/browser/ui/cocoa/infobars/infobar.h" |
| 16 #import "chrome/browser/ui/cocoa/infobars/translate_infobar_base.h" | 16 #import "chrome/browser/ui/cocoa/infobars/translate_infobar_base.h" |
| 17 #import "content/public/browser/web_contents.h" | 17 #import "content/public/browser/web_contents.h" |
| 18 #include "ipc/ipc_message.h" | 18 #include "ipc/ipc_message.h" |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 translate_prefs.IncrementTranslationDeniedCount("en"); | 244 translate_prefs.IncrementTranslationDeniedCount("en"); |
| 245 } | 245 } |
| 246 CreateInfoBar(TranslateInfoBarDelegate::BEFORE_TRANSLATE); | 246 CreateInfoBar(TranslateInfoBarDelegate::BEFORE_TRANSLATE); |
| 247 BeforeTranslateInfobarController* controller = | 247 BeforeTranslateInfobarController* controller = |
| 248 (BeforeTranslateInfobarController*)infobar_controller_.get(); | 248 (BeforeTranslateInfobarController*)infobar_controller_.get(); |
| 249 EXPECT_TRUE([[controller alwaysTranslateButton] superview] == nil); | 249 EXPECT_TRUE([[controller alwaysTranslateButton] superview] == nil); |
| 250 EXPECT_TRUE([[controller neverTranslateButton] superview] != nil); | 250 EXPECT_TRUE([[controller neverTranslateButton] superview] != nil); |
| 251 } | 251 } |
| 252 | 252 |
| 253 } // namespace | 253 } // namespace |
| OLD | NEW |