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

Issue 2874493002: Make ARC's intent picker use the buttons insets. (Closed)

Created:
3 years, 7 months ago by djacobo
Modified:
3 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ARC's intent picker use the buttons insets. Need to call SetupLayout via UpdateDialogButtons so the buttons make proper use of the established insets. Bug: 678141 Test: Try. Review-Url: https://codereview.chromium.org/2874493002 Cr-Commit-Position: refs/heads/master@{#472534} Committed: https://chromium.googlesource.com/chromium/src/+/15bdd62c05472adc642dcf0982fe4662502ac957

Patch Set 1 #

Total comments: 2

Patch Set 2 : Modifying set_button_rows_insets() so it can also trigger a Layout with the provided insets #

Patch Set 3 : Removing direct call to UpdateDialogButtons() #

Total comments: 2

Patch Set 4 : Protecting against scenarios with no widget #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -7 lines) Patch
M chrome/browser/ui/views/extensions/chooser_dialog_view.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/intent_picker_bubble_view.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/views/bubble/bubble_dialog_delegate.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/views/window/dialog_client_view.h View 1 2 chunks +1 line, -4 lines 0 comments Download
M ui/views/window/dialog_client_view.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (30 generated)
djacobo
PTAL
3 years, 7 months ago (2017-05-09 21:13:03 UTC) #4
djacobo
On 2017/05/09 21:13:03, djacobo wrote: > PTAL Already tested on M59, this fixes the insets ...
3 years, 7 months ago (2017-05-09 22:20:56 UTC) #7
sky
https://codereview.chromium.org/2874493002/diff/1/chrome/browser/ui/views/intent_picker_bubble_view.cc File chrome/browser/ui/views/intent_picker_bubble_view.cc (right): https://codereview.chromium.org/2874493002/diff/1/chrome/browser/ui/views/intent_picker_bubble_view.cc#newcode111 chrome/browser/ui/views/intent_picker_bubble_view.cc:111: delegate->GetDialogClientView()->set_button_row_insets( Can this be moved above line 109 such ...
3 years, 7 months ago (2017-05-10 15:27:02 UTC) #12
djacobo
https://codereview.chromium.org/2874493002/diff/1/chrome/browser/ui/views/intent_picker_bubble_view.cc File chrome/browser/ui/views/intent_picker_bubble_view.cc (right): https://codereview.chromium.org/2874493002/diff/1/chrome/browser/ui/views/intent_picker_bubble_view.cc#newcode111 chrome/browser/ui/views/intent_picker_bubble_view.cc:111: delegate->GetDialogClientView()->set_button_row_insets( On 2017/05/10 15:27:02, sky wrote: > Can this ...
3 years, 7 months ago (2017-05-10 18:14:20 UTC) #13
sky
Ok, in that case please rename set_button_row_insets and have it trigger a layout. On Wed, ...
3 years, 7 months ago (2017-05-12 01:56:59 UTC) #14
sky
By rename I mean as set_button_row_insets will no longer be cheap it should be changed ...
3 years, 7 months ago (2017-05-12 01:57:23 UTC) #15
djacobo
On 2017/05/12 01:57:23, sky wrote: > By rename I mean as set_button_row_insets will no longer ...
3 years, 7 months ago (2017-05-12 21:15:27 UTC) #20
djacobo
On 2017/05/12 01:57:23, sky wrote: > By rename I mean as set_button_row_insets will no longer ...
3 years, 7 months ago (2017-05-12 21:15:28 UTC) #21
sky
https://codereview.chromium.org/2874493002/diff/40001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/2874493002/diff/40001/ui/views/window/dialog_client_view.cc#newcode113 ui/views/window/dialog_client_view.cc:113: if (button_row_container_->has_children()) Why do you make this conditional on ...
3 years, 7 months ago (2017-05-14 16:01:16 UTC) #24
djacobo
https://codereview.chromium.org/2874493002/diff/40001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/2874493002/diff/40001/ui/views/window/dialog_client_view.cc#newcode113 ui/views/window/dialog_client_view.cc:113: if (button_row_container_->has_children()) On 2017/05/14 16:01:16, sky wrote: > Why ...
3 years, 7 months ago (2017-05-16 01:10:25 UTC) #26
sky
LGTM
3 years, 7 months ago (2017-05-17 15:25:17 UTC) #38
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/2874493002/60001
3 years, 7 months ago (2017-05-17 18:12:45 UTC) #40
commit-bot: I haz the power
3 years, 7 months ago (2017-05-17 19:36:02 UTC) #43
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/15bdd62c05472adc642dcf0982fe...

Powered by Google App Engine
This is Rietveld 408576698