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

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

Issue 2478863003: Fix the Web Bluetooth chooser when it is used on Chrome apps on non-Mac (Closed)
Patch Set: initialize pointer to be nullptr Created 4 years, 1 month 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_delegate.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_delegate.cc
diff --git a/ui/views/window/dialog_delegate.cc b/ui/views/window/dialog_delegate.cc
index 4fb35bbcbfc995f09bb843fe273b7050ce8da39c..aa1e0025aa082354b9ada920563744a449008b15 100644
--- a/ui/views/window/dialog_delegate.cc
+++ b/ui/views/window/dialog_delegate.cc
@@ -191,16 +191,18 @@ ClientView* DialogDelegate::CreateClientView(Widget* widget) {
NonClientFrameView* DialogDelegate::CreateNonClientFrameView(Widget* widget) {
if (ShouldUseCustomFrame())
- return CreateDialogFrameView(widget);
+ return CreateDialogFrameView(widget, gfx::Insets());
return WidgetDelegate::CreateNonClientFrameView(widget);
}
// static
-NonClientFrameView* DialogDelegate::CreateDialogFrameView(Widget* widget) {
+NonClientFrameView* DialogDelegate::CreateDialogFrameView(
+ Widget* widget,
+ const gfx::Insets& content_margins) {
BubbleFrameView* frame =
new BubbleFrameView(gfx::Insets(kPanelVertMargin, kButtonHEdgeMarginNew,
0, kButtonHEdgeMarginNew),
- gfx::Insets());
+ content_margins);
const BubbleBorder::Shadow kShadow = BubbleBorder::SMALL_SHADOW;
std::unique_ptr<BubbleBorder> border(
new BubbleBorder(BubbleBorder::FLOAT, kShadow, gfx::kPlaceholderColor));
« no previous file with comments | « ui/views/window/dialog_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698