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

Unified Diff: ash/shell.cc

Issue 12184004: Replace DialogFrameView with an enhanced BubbleFrameView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comment. Created 7 years, 10 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 | « no previous file | chrome/browser/ui/views/constrained_window_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 19d8a119060c8899bb3b117a5771b5413b84c042..b788522f2e7440b7f91377d3c42fb6d9a5344dae 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -94,7 +94,7 @@
#include "ui/views/focus/focus_manager_factory.h"
#include "ui/views/widget/native_widget_aura.h"
#include "ui/views/widget/widget.h"
-#include "ui/views/window/dialog_frame_view.h"
+#include "ui/views/window/dialog_delegate.h"
#if !defined(OS_MACOSX)
#include "ash/accelerators/accelerator_controller.h"
@@ -657,10 +657,8 @@ bool Shell::IsSystemModalWindowOpen() const {
views::NonClientFrameView* Shell::CreateDefaultNonClientFrameView(
views::Widget* widget) {
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- ::switches::kEnableNewDialogStyle)) {
- return new views::DialogFrameView(string16());
- }
+ if (views::DialogDelegate::UseNewStyle())
+ return views::DialogDelegate::CreateNewStyleFrameView(widget);
// Use translucent-style window frames for dialogs.
CustomFrameViewAsh* frame_view = new CustomFrameViewAsh;
frame_view->Init(widget);
« no previous file with comments | « no previous file | chrome/browser/ui/views/constrained_window_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698