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

Issue 2904443006: Views/Harmony Remove references to ui/views/layout/layout_constants.h (Closed)

Created:
3 years, 7 months ago by ananta
Modified:
3 years, 6 months ago
Reviewers:
Peter Kasting, sky
CC:
chromium-reviews, tfarina, James Su, shuchen+watch_chromium.org, yusukes+watch_chromium.org, nona+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Views/Harmony Remove references to ui/views/layout/layout_constants.h Replace references to constants in ui/views/layout/layout_constants.h with their equivalents using ChromeLayoutProvider. BUG=691897 TBR=sky Review-Url: https://codereview.chromium.org/2904443006 Cr-Commit-Position: refs/heads/master@{#475229} Committed: https://chromium.googlesource.com/chromium/src/+/cf4f838225c132dee06cc21dd6a576347734589b

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use DISTANCE_DIALOG_CONTENTS_HORIZONTAL_MARGIN #

Patch Set 3 : Remove layout_constants.h from import_lock_dialog_view.cc #

Patch Set 4 : Remove layout_constants.h from import_lock_dialog_view.cc #

Patch Set 5 : Fix compile failures #

Patch Set 6 : Fix TranslateBubbleViewTest tests by setting up the ChromeLayoutProvider as the default provider #

Total comments: 40

Patch Set 7 : Address round 1 of review comments #

Patch Set 8 : Remove includes of layout_constants.h from ui/views #

Total comments: 19

Patch Set 9 : Address next round of comments #

Total comments: 2

Patch Set 10 : Address next round of review comments #

Patch Set 11 : Add layout_constants.h back to dialog_example.cc as it refers to kUnrelatedControlVerticalSpacing. … #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -100 lines) Patch
M chrome/browser/ui/views/ime/ime_warning_bubble_view.cc View 1 2 3 4 5 6 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/importer/import_lock_dialog_view.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/zoom_bubble_view.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/permission_bubble/permission_prompt_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 3 4 5 6 7 8 9 29 chunks +127 lines, -64 lines 0 comments Download
M chrome/browser/ui/views/translate/translate_bubble_view.cc View 1 2 3 4 5 6 7 8 15 chunks +45 lines, -22 lines 0 comments Download
M chrome/browser/ui/views/translate/translate_bubble_view_unittest.cc View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M ui/views/bubble/bubble_dialog_delegate.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/bubble/bubble_frame_view.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/controls/button/label_button.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/controls/message_box_view.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M ui/views/layout/grid_layout.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/views_delegate.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/window/dialog_delegate.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 53 (35 generated)
ananta
https://codereview.chromium.org/2904443006/diff/1/chrome/browser/ui/views/translate/translate_bubble_view.cc File chrome/browser/ui/views/translate/translate_bubble_view.cc (right): https://codereview.chromium.org/2904443006/diff/1/chrome/browser/ui/views/translate/translate_bubble_view.cc#newcode618 chrome/browser/ui/views/translate/translate_bubble_view.cc:618: layout->AddPaddingRow( This possibly can be ripped out. There is ...
3 years, 7 months ago (2017-05-24 06:32:09 UTC) #2
Peter Kasting
Note: I'm behind on codereviews but will try and get to this today (Thursday May ...
3 years, 7 months ago (2017-05-25 07:24:50 UTC) #15
Peter Kasting
https://codereview.chromium.org/2904443006/diff/1/chrome/browser/ui/views/translate/translate_bubble_view.cc File chrome/browser/ui/views/translate/translate_bubble_view.cc (right): https://codereview.chromium.org/2904443006/diff/1/chrome/browser/ui/views/translate/translate_bubble_view.cc#newcode618 chrome/browser/ui/views/translate/translate_bubble_view.cc:618: layout->AddPaddingRow( On 2017/05/24 06:32:09, ananta wrote: > This possibly ...
3 years, 6 months ago (2017-05-26 00:50:25 UTC) #16
ananta
https://codereview.chromium.org/2904443006/diff/100001/chrome/browser/ui/views/ime/ime_warning_bubble_view.cc File chrome/browser/ui/views/ime/ime_warning_bubble_view.cc (right): https://codereview.chromium.org/2904443006/diff/100001/chrome/browser/ui/views/ime/ime_warning_bubble_view.cc#newcode193 chrome/browser/ui/views/ime/ime_warning_bubble_view.cc:193: layout->AddPaddingRow(0, vertical_spacing); On 2017/05/26 00:50:24, Peter Kasting wrote: > ...
3 years, 6 months ago (2017-05-26 03:23:25 UTC) #17
ananta
The patchset includes layout_constants.h include removal from ui/views. The only file which includes it now ...
3 years, 6 months ago (2017-05-26 07:51:18 UTC) #20
Peter Kasting
https://codereview.chromium.org/2904443006/diff/100001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2904443006/diff/100001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode483 chrome/browser/ui/views/profiles/profile_chooser_view.cc:483: views::DISTANCE_DIALOG_BUTTON_BOTTOM_MARGIN); On 2017/05/26 03:23:24, ananta wrote: > On 2017/05/26 ...
3 years, 6 months ago (2017-05-26 16:19:45 UTC) #25
ananta
https://codereview.chromium.org/2904443006/diff/100001/chrome/browser/ui/views/translate/translate_bubble_view.cc File chrome/browser/ui/views/translate/translate_bubble_view.cc (right): https://codereview.chromium.org/2904443006/diff/100001/chrome/browser/ui/views/translate/translate_bubble_view.cc#newcode618 chrome/browser/ui/views/translate/translate_bubble_view.cc:618: layout->AddPaddingRow( On 2017/05/26 16:19:40, Peter Kasting wrote: > On ...
3 years, 6 months ago (2017-05-26 19:20:29 UTC) #26
ananta
Displaying the profile UI via browser_tests is a touch more involved as these are not ...
3 years, 6 months ago (2017-05-26 22:49:38 UTC) #27
Peter Kasting
LGTM https://codereview.chromium.org/2904443006/diff/160001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2904443006/diff/160001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode1115 chrome/browser/ui/views/profiles/profile_chooser_view.cc:1115: view->SetBorder(views::CreateEmptyBorder( Simpler: view->SetBorder(views::CreateEmptyBorder(dialog_insets));
3 years, 6 months ago (2017-05-27 00:00:59 UTC) #28
ananta
https://codereview.chromium.org/2904443006/diff/160001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2904443006/diff/160001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode1115 chrome/browser/ui/views/profiles/profile_chooser_view.cc:1115: view->SetBorder(views::CreateEmptyBorder( On 2017/05/27 00:00:58, Peter Kasting wrote: > Simpler: ...
3 years, 6 months ago (2017-05-27 00:25:39 UTC) #31
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/2904443006/180001
3 years, 6 months ago (2017-05-27 01:35:59 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/449439)
3 years, 6 months ago (2017-05-27 01:43:57 UTC) #38
ananta
+sky for ui/views owners. TBR'ing as these are boilerplate changes to fetch metrics using the ...
3 years, 6 months ago (2017-05-27 01:45:57 UTC) #42
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/2904443006/180001
3 years, 6 months ago (2017-05-27 01:46:17 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/466215)
3 years, 6 months ago (2017-05-27 02:03:44 UTC) #46
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/2904443006/200001
3 years, 6 months ago (2017-05-27 02:11:24 UTC) #49
commit-bot: I haz the power
Committed patchset #11 (id:200001) as https://chromium.googlesource.com/chromium/src/+/cf4f838225c132dee06cc21dd6a576347734589b
3 years, 6 months ago (2017-05-27 03:08:11 UTC) #52
sky
3 years, 6 months ago (2017-05-27 15:34:20 UTC) #53
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698