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

Issue 2857123003: Move frame-related methods out of GoogleLandingViewController (Closed)

Created:
3 years, 7 months ago by gambard
Modified:
3 years, 7 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

Move frame-related methods out of GoogleLandingViewController In order to be able to display the ContentSuggestions as NTP, some methods should be moved in helpers. This CL moves the methods related to the frame of the elements in the NTP. BUG=700375, 717974 Review-Url: https://codereview.chromium.org/2857123003 Cr-Commit-Position: refs/heads/master@{#470549} Committed: https://chromium.googlesource.com/chromium/src/+/2c54e2be976f7c4e8d8ac2438f5f1e97f6566a6c

Patch Set 1 #

Patch Set 2 : Reviewable #

Patch Set 3 : Fix the number of columns #

Total comments: 16

Patch Set 4 : Address comments #

Total comments: 6

Patch Set 5 : Rebase #

Patch Set 6 : Address comments #

Total comments: 2

Patch Set 7 : Fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+431 lines, -136 lines) Patch
M ios/chrome/browser/ui/content_suggestions/BUILD.gn View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils.h View 1 2 3 4 5 1 chunk +40 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils.mm View 1 2 3 4 1 chunk +137 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils_unittest.mm View 1 2 3 4 5 6 1 chunk +215 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/ntp/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/ntp/google_landing_view_controller.mm View 1 2 3 4 17 chunks +31 lines, -136 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 21 (11 generated)
gambard
PTAL.
3 years, 7 months ago (2017-05-03 10:36:13 UTC) #2
marq (ping after 24h)
Unit tests for the extracted functions? https://codereview.chromium.org/2857123003/diff/40001/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils.h File ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils.h (right): https://codereview.chromium.org/2857123003/diff/40001/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils.h#newcode16 ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils.h:16: // Returns the ...
3 years, 7 months ago (2017-05-04 08:15:01 UTC) #9
gambard
Thanks, rohit@: PTAL as marq is OOO https://codereview.chromium.org/2857123003/diff/40001/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils.h File ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils.h (right): https://codereview.chromium.org/2857123003/diff/40001/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils.h#newcode16 ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils.h:16: // Returns ...
3 years, 7 months ago (2017-05-04 15:12:32 UTC) #11
marq (ping after 24h)
https://codereview.chromium.org/2857123003/diff/60001/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils.h File ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils.h (right): https://codereview.chromium.org/2857123003/diff/60001/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils.h#newcode16 ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils.h:16: // Returns left margin in order to have the ...
3 years, 7 months ago (2017-05-10 09:23:49 UTC) #12
gambard
Thanks, PTAL. https://codereview.chromium.org/2857123003/diff/60001/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils.h File ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils.h (right): https://codereview.chromium.org/2857123003/diff/60001/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils.h#newcode16 ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils.h:16: // Returns left margin in order to ...
3 years, 7 months ago (2017-05-10 11:09:40 UTC) #13
marq (ping after 24h)
https://codereview.chromium.org/2857123003/diff/100001/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils_unittest.mm File ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils_unittest.mm (right): https://codereview.chromium.org/2857123003/diff/100001/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils_unittest.mm#newcode72 ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils_unittest.mm:72: if (IsIPadIdiom()) { Here (and elsewhere) -- for each ...
3 years, 7 months ago (2017-05-10 11:17:27 UTC) #14
gambard
Thanks, PTAL. https://codereview.chromium.org/2857123003/diff/100001/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils_unittest.mm File ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils_unittest.mm (right): https://codereview.chromium.org/2857123003/diff/100001/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils_unittest.mm#newcode72 ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_utils_unittest.mm:72: if (IsIPadIdiom()) { On 2017/05/10 11:17:26, marq ...
3 years, 7 months ago (2017-05-10 11:48:46 UTC) #15
marq (ping after 24h)
lgtm
3 years, 7 months ago (2017-05-10 11:58:02 UTC) #16
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/2857123003/120001
3 years, 7 months ago (2017-05-10 11:58:59 UTC) #18
commit-bot: I haz the power
3 years, 7 months ago (2017-05-10 13:14:03 UTC) #21
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/2c54e2be976f7c4e8d8ac2438f5f...

Powered by Google App Engine
This is Rietveld 408576698