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

Issue 2983453002: Expose way to enable/disable translate. (Closed)

Created:
3 years, 5 months ago by jzw1
Modified:
3 years, 5 months ago
CC:
chromium-reviews, Eugene But (OOO till 7-30), ios-reviews+web_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Expose way to enable/disable translate. Review-Url: https://codereview.chromium.org/2983453002 Cr-Commit-Position: refs/heads/master@{#486833} Committed: https://chromium.googlesource.com/chromium/src/+/03b800c37e9643a72abb82fb9dc1050648ce3aa1

Patch Set 1 #

Total comments: 5

Patch Set 2 : Refactor settings #

Total comments: 17

Patch Set 3 : Just wrap PrefService #

Patch Set 4 : update ChromeWebView.h #

Patch Set 5 : comment non obvious param #

Total comments: 5

Patch Set 6 : addressed michaeldo's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -21 lines) Patch
M ios/web_view/BUILD.gn View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
A ios/web_view/internal/cwv_preferences.mm View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
A ios/web_view/internal/cwv_preferences_internal.h View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
M ios/web_view/internal/cwv_web_view_configuration.mm View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
M ios/web_view/internal/translate/cwv_translation_controller.mm View 1 4 chunks +0 lines, -15 lines 0 comments Download
M ios/web_view/public/ChromeWebView.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A ios/web_view/public/cwv_preferences.h View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
M ios/web_view/public/cwv_translation_controller.h View 1 3 chunks +0 lines, -6 lines 0 comments Download
M ios/web_view/public/cwv_web_view_configuration.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (6 generated)
jzw1
On 2017/07/13 06:33:32, jzw1 wrote: > mailto:jzw@chromium.org changed reviewers: > + mailto:eugenebut@chromium.org, mailto:ichikawa@chromium.org, mailto:michaeldo@chromium.org Hey ...
3 years, 5 months ago (2017-07-13 06:35:44 UTC) #2
Hiroshi Ichikawa
On 2017/07/13 06:35:44, jzw1 wrote: > On 2017/07/13 06:33:32, jzw1 wrote: > > mailto:jzw@chromium.org changed ...
3 years, 5 months ago (2017-07-13 07:26:33 UTC) #3
Hiroshi Ichikawa
https://codereview.chromium.org/2983453002/diff/1/ios/web_view/public/cwv_translation_controller.h File ios/web_view/public/cwv_translation_controller.h (right): https://codereview.chromium.org/2983453002/diff/1/ios/web_view/public/cwv_translation_controller.h#newcode60 ios/web_view/public/cwv_translation_controller.h:60: + (BOOL)isTranslateEnabled; Optional: Maybe it can be just "isEnabled" ...
3 years, 5 months ago (2017-07-13 07:28:59 UTC) #4
michaeldo
On 2017/07/13 07:26:33, Hiroshi Ichikawa wrote: > On 2017/07/13 06:35:44, jzw1 wrote: > > On ...
3 years, 5 months ago (2017-07-13 15:01:43 UTC) #5
jzw1
On 2017/07/13 15:01:43, michaeldo wrote: > On 2017/07/13 07:26:33, Hiroshi Ichikawa wrote: > > On ...
3 years, 5 months ago (2017-07-13 17:07:04 UTC) #6
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2983453002/diff/1/ios/web_view/public/cwv_translation_controller.h File ios/web_view/public/cwv_translation_controller.h (right): https://codereview.chromium.org/2983453002/diff/1/ios/web_view/public/cwv_translation_controller.h#newcode59 ios/web_view/public/cwv_translation_controller.h:59: // Enables or disables the translate feature. Only applies ...
3 years, 5 months ago (2017-07-13 17:52:58 UTC) #7
jzw1
https://codereview.chromium.org/2983453002/diff/1/ios/web_view/public/cwv_translation_controller.h File ios/web_view/public/cwv_translation_controller.h (right): https://codereview.chromium.org/2983453002/diff/1/ios/web_view/public/cwv_translation_controller.h#newcode59 ios/web_view/public/cwv_translation_controller.h:59: // Enables or disables the translate feature. Only applies ...
3 years, 5 months ago (2017-07-13 21:05:05 UTC) #8
Eugene But (OOO till 7-30)
I like the general direction. Have a few comments. https://codereview.chromium.org/2983453002/diff/20001/ios/web_view/internal/translate/cwv_translation_configuration.mm File ios/web_view/internal/translate/cwv_translation_configuration.mm (right): https://codereview.chromium.org/2983453002/diff/20001/ios/web_view/internal/translate/cwv_translation_configuration.mm#newcode43 ios/web_view/internal/translate/cwv_translation_configuration.mm:43: ...
3 years, 5 months ago (2017-07-14 00:22:43 UTC) #9
Hiroshi Ichikawa
https://codereview.chromium.org/2983453002/diff/20001/ios/web_view/internal/web_view_web_main_delegate.mm File ios/web_view/internal/web_view_web_main_delegate.mm (right): https://codereview.chromium.org/2983453002/diff/20001/ios/web_view/internal/web_view_web_main_delegate.mm#newcode13 ios/web_view/internal/web_view_web_main_delegate.mm:13: // Objective-C dummy object used to locate the containing ...
3 years, 5 months ago (2017-07-14 01:18:39 UTC) #10
jzw1
On 2017/07/14 01:18:39, Hiroshi Ichikawa wrote: > https://codereview.chromium.org/2983453002/diff/20001/ios/web_view/internal/web_view_web_main_delegate.mm > File ios/web_view/internal/web_view_web_main_delegate.mm (right): > > https://codereview.chromium.org/2983453002/diff/20001/ios/web_view/internal/web_view_web_main_delegate.mm#newcode13 ...
3 years, 5 months ago (2017-07-14 01:54:56 UTC) #11
jzw1
https://codereview.chromium.org/2983453002/diff/20001/ios/web_view/internal/translate/cwv_translation_configuration.mm File ios/web_view/internal/translate/cwv_translation_configuration.mm (right): https://codereview.chromium.org/2983453002/diff/20001/ios/web_view/internal/translate/cwv_translation_configuration.mm#newcode43 ios/web_view/internal/translate/cwv_translation_configuration.mm:43: prefs::kAcceptLanguages, nullptr); On 2017/07/14 00:22:42, Eugene But wrote: > ...
3 years, 5 months ago (2017-07-14 02:09:50 UTC) #12
Hiroshi Ichikawa
lgtm https://codereview.chromium.org/2983453002/diff/20001/ios/web_view/internal/translate/cwv_translation_configuration.mm File ios/web_view/internal/translate/cwv_translation_configuration.mm (right): https://codereview.chromium.org/2983453002/diff/20001/ios/web_view/internal/translate/cwv_translation_configuration.mm#newcode43 ios/web_view/internal/translate/cwv_translation_configuration.mm:43: prefs::kAcceptLanguages, nullptr); On 2017/07/14 02:09:49, jzw1 wrote: > ...
3 years, 5 months ago (2017-07-14 02:55:49 UTC) #13
jzw1
On 2017/07/14 02:55:49, Hiroshi Ichikawa wrote: > lgtm > > https://codereview.chromium.org/2983453002/diff/20001/ios/web_view/internal/translate/cwv_translation_configuration.mm > File ios/web_view/internal/translate/cwv_translation_configuration.mm (right): ...
3 years, 5 months ago (2017-07-14 04:02:20 UTC) #14
Eugene But (OOO till 7-30)
lgtm!
3 years, 5 months ago (2017-07-14 15:46:19 UTC) #15
michaeldo
lgtm https://codereview.chromium.org/2983453002/diff/80001/ios/web_view/internal/cwv_preferences.mm File ios/web_view/internal/cwv_preferences.mm (right): https://codereview.chromium.org/2983453002/diff/80001/ios/web_view/internal/cwv_preferences.mm#newcode5 ios/web_view/internal/cwv_preferences.mm:5: #import "ios/web_view/public/cwv_preferences.h" No need for cwv_preferences import. Other ...
3 years, 5 months ago (2017-07-14 16:11:08 UTC) #16
jzw1
https://codereview.chromium.org/2983453002/diff/80001/ios/web_view/internal/cwv_preferences.mm File ios/web_view/internal/cwv_preferences.mm (right): https://codereview.chromium.org/2983453002/diff/80001/ios/web_view/internal/cwv_preferences.mm#newcode5 ios/web_view/internal/cwv_preferences.mm:5: #import "ios/web_view/public/cwv_preferences.h" On 2017/07/14 16:11:08, michaeldo wrote: > No ...
3 years, 5 months ago (2017-07-14 17:37:19 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2983453002/100001
3 years, 5 months ago (2017-07-14 17:38:16 UTC) #20
michaeldo
https://codereview.chromium.org/2983453002/diff/80001/ios/web_view/internal/cwv_preferences.mm File ios/web_view/internal/cwv_preferences.mm (right): https://codereview.chromium.org/2983453002/diff/80001/ios/web_view/internal/cwv_preferences.mm#newcode21 ios/web_view/internal/cwv_preferences.mm:21: @dynamic translationEnabled; On 2017/07/14 17:37:19, jzw1 wrote: > On ...
3 years, 5 months ago (2017-07-14 17:39:33 UTC) #21
jzw1
On 2017/07/14 17:39:33, michaeldo wrote: > https://codereview.chromium.org/2983453002/diff/80001/ios/web_view/internal/cwv_preferences.mm > File ios/web_view/internal/cwv_preferences.mm (right): > > https://codereview.chromium.org/2983453002/diff/80001/ios/web_view/internal/cwv_preferences.mm#newcode21 > ...
3 years, 5 months ago (2017-07-14 18:04:47 UTC) #22
commit-bot: I haz the power
3 years, 5 months ago (2017-07-14 19:14:22 UTC) #26
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/03b800c37e9643a72abb82fb9dc1...

Powered by Google App Engine
This is Rietveld 408576698