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

Unified Diff: ui/views/widget/widget.cc

Issue 9166014: Allow a Views client to provide a default frameview for window widgets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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/views_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/widget/widget.cc
===================================================================
--- ui/views/widget/widget.cc (revision 117168)
+++ ui/views/widget/widget.cc (working copy)
@@ -750,6 +750,10 @@
NonClientFrameView* frame_view = widget_delegate_->CreateNonClientFrameView();
if (!frame_view)
frame_view = native_widget_->CreateNonClientFrameView();
+ if (!frame_view && ViewsDelegate::views_delegate) {
+ frame_view =
+ ViewsDelegate::views_delegate->CreateDefaultNonClientFrameView(this);
+ }
return frame_view ? frame_view : new CustomFrameView(this);
}
« no previous file with comments | « ui/views/views_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698