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

Unified Diff: ui/views/window/dialog_client_view.cc

Issue 2874493002: Make ARC's intent picker use the buttons insets. (Closed)
Patch Set: Removing direct call to UpdateDialogButtons() Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/window/dialog_client_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/dialog_client_view.cc
diff --git a/ui/views/window/dialog_client_view.cc b/ui/views/window/dialog_client_view.cc
index 775f54d9815b039505f80e17a8266c9091a481d9..e5b8a0b6f0de497bfccdbdb47bb02871a7b4abe8 100644
--- a/ui/views/window/dialog_client_view.cc
+++ b/ui/views/window/dialog_client_view.cc
@@ -108,6 +108,12 @@ void DialogClientView::UpdateDialogButtons() {
InvalidateLayout();
}
+void DialogClientView::SetButtonRowInsets(const gfx::Insets& insets) {
+ button_row_insets_ = insets;
+ if (button_row_container_->has_children())
sky 2017/05/14 16:01:16 Why do you make this conditional on whether there
djacobo 2017/05/16 01:10:25 Initially I thought that not having an ok_button_
+ UpdateDialogButtons();
+}
+
///////////////////////////////////////////////////////////////////////////////
// DialogClientView, ClientView overrides:
« no previous file with comments | « ui/views/window/dialog_client_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698