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

Issue 2914193002: [iOS] Factor out the KeyboardAccessoryView. (Closed)

Created:
3 years, 6 months ago by jif
Modified:
3 years, 6 months ago
CC:
chromium-reviews, marq+watch_chromium.org, ios-reviews+chrome_chromium.org, noyau+watch_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[iOS] Factor out the KeyboardAccessoryView. This CL moves the code describing the KeyboardAccessoryView to a separate class. Notable changes: *Communication with the WebToolbarController now occurs via the KeyboardAccessoryViewDelegate. *The preloading of Voice Search now occurs on all touch downs, as opposed to only the first touch down. This shouldn't be a problem, because preloading could already happen multiple time (by pressing the voice icon in the toolbar, and then pressing the voice icon in the keyboard accessory view). BUG=728588 Review-Url: https://codereview.chromium.org/2914193002 Cr-Commit-Position: refs/heads/master@{#476651} Committed: https://chromium.googlesource.com/chromium/src/+/45a1d81d83b120a07933838d25989a2ef80b471f

Patch Set 1 #

Patch Set 2 : 2 #

Total comments: 5

Patch Set 3 : Addressed comments and broke retain cycle. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -173 lines) Patch
M ios/chrome/browser/ui/toolbar/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/toolbar/keyboard_accessory_view.h View 1 2 1 chunk +52 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/toolbar/keyboard_accessory_view.mm View 1 2 1 chunk +165 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/toolbar/web_toolbar_controller.mm View 1 15 chunks +52 lines, -173 lines 0 comments Download

Messages

Total messages: 21 (16 generated)
jif
ptal
3 years, 6 months ago (2017-06-01 13:19:37 UTC) #7
marq (ping after 24h)
LGTM, style nits only. Good refactor! https://codereview.chromium.org/2914193002/diff/20001/ios/chrome/browser/ui/toolbar/keyboard_accessory_view.h File ios/chrome/browser/ui/toolbar/keyboard_accessory_view.h (right): https://codereview.chromium.org/2914193002/diff/20001/ios/chrome/browser/ui/toolbar/keyboard_accessory_view.h#newcode39 ios/chrome/browser/ui/toolbar/keyboard_accessory_view.h:39: Comment for the ...
3 years, 6 months ago (2017-06-02 09:15:10 UTC) #8
jif
Note that I had accidentally introduced a retain cycle! https://codereview.chromium.org/2914193002/diff/20001/ios/chrome/browser/ui/toolbar/keyboard_accessory_view.h File ios/chrome/browser/ui/toolbar/keyboard_accessory_view.h (right): https://codereview.chromium.org/2914193002/diff/20001/ios/chrome/browser/ui/toolbar/keyboard_accessory_view.h#newcode40 ios/chrome/browser/ui/toolbar/keyboard_accessory_view.h:40: ...
3 years, 6 months ago (2017-06-02 13:06:18 UTC) #11
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/2914193002/80001
3 years, 6 months ago (2017-06-02 14:51:03 UTC) #17
commit-bot: I haz the power
3 years, 6 months ago (2017-06-02 15:03:23 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/45a1d81d83b120a07933838d2598...

Powered by Google App Engine
This is Rietveld 408576698