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

Unified Diff: ash/shell.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
Index: ash/shell.cc
===================================================================
--- ash/shell.cc (revision 117091)
+++ ash/shell.cc (working copy)
@@ -22,6 +22,7 @@
#include "ash/wm/compact_status_area_layout_manager.h"
#include "ash/wm/default_container_event_filter.h"
#include "ash/wm/default_container_layout_manager.h"
+#include "ash/wm/dialog_frame_view.h"
#include "ash/wm/modal_container_layout_manager.h"
#include "ash/wm/power_button_controller.h"
#include "ash/wm/root_window_event_filter.h"
@@ -383,6 +384,15 @@
return false;
}
+views::NonClientFrameView* Shell::CreateDefaultNonClientFrameView(
+ views::Widget* widget) {
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kAuraKennedyDialogFrames)) {
+ return new internal::DialogFrameView;
+ }
+ return NULL;
+}
+
////////////////////////////////////////////////////////////////////////////////
// Shell, private:

Powered by Google App Engine
This is Rietveld 408576698