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

Side by Side Diff: ios/chrome/browser/translate/after_translate_infobar_controller.mm

Issue 1672663002: Access generated resources through full path for better DEPS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 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 "ios/chrome/browser/translate/after_translate_infobar_controller.h" 5 #include "ios/chrome/browser/translate/after_translate_infobar_controller.h"
6 6
7 #include "base/strings/sys_string_conversions.h" 7 #include "base/strings/sys_string_conversions.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "components/strings/grit/components_strings.h"
9 #include "components/translate/core/browser/translate_infobar_delegate.h" 10 #include "components/translate/core/browser/translate_infobar_delegate.h"
10 #include "grit/components_strings.h"
11 #include "ios/chrome/browser/translate/translate_infobar_tags.h" 11 #include "ios/chrome/browser/translate/translate_infobar_tags.h"
12 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" 12 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
13 #import "ios/public/provider/chrome/browser/ui/infobar_view_delegate.h" 13 #import "ios/public/provider/chrome/browser/ui/infobar_view_delegate.h"
14 #import "ios/public/provider/chrome/browser/ui/infobar_view_protocol.h" 14 #import "ios/public/provider/chrome/browser/ui/infobar_view_protocol.h"
15 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
16 #include "ui/gfx/image/image.h" 16 #include "ui/gfx/image/image.h"
17 17
18 @interface AfterTranslateInfoBarController () { 18 @interface AfterTranslateInfoBarController () {
19 translate::TranslateInfoBarDelegate* _translateInfoBarDelegate; // weak 19 translate::TranslateInfoBarDelegate* _translateInfoBarDelegate; // weak
20 } 20 }
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 } 114 }
115 115
116 - (void)infoBarSwitchDidPress:(id)sender { 116 - (void)infoBarSwitchDidPress:(id)sender {
117 DCHECK_EQ(TranslateInfoBarIOSTag::ALWAYS_TRANSLATE_SWITCH, [sender tag]); 117 DCHECK_EQ(TranslateInfoBarIOSTag::ALWAYS_TRANSLATE_SWITCH, [sender tag]);
118 DCHECK([sender respondsToSelector:@selector(isOn)]); 118 DCHECK([sender respondsToSelector:@selector(isOn)]);
119 if (_translateInfoBarDelegate->ShouldAlwaysTranslate() != [sender isOn]) 119 if (_translateInfoBarDelegate->ShouldAlwaysTranslate() != [sender isOn])
120 _translateInfoBarDelegate->ToggleAlwaysTranslate(); 120 _translateInfoBarDelegate->ToggleAlwaysTranslate();
121 } 121 }
122 122
123 @end 123 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698