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

Unified Diff: components/mus/example/views_examples/views_examples_application_delegate.cc

Issue 1407073002: Adds GetDisplays() to WindowManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 2 trunk Created 5 years, 2 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: components/mus/example/views_examples/views_examples_application_delegate.cc
diff --git a/components/mus/example/views_examples/views_examples_application_delegate.cc b/components/mus/example/views_examples/views_examples_application_delegate.cc
index 889186cf15a21f96f211d241a0da202f6289a1ba..d02cb6733ba14b48cd18b14763e865be33665ba3 100644
--- a/components/mus/example/views_examples/views_examples_application_delegate.cc
+++ b/components/mus/example/views_examples/views_examples_application_delegate.cc
@@ -9,7 +9,6 @@
#include "mojo/application/public/cpp/application_impl.h"
#include "ui/views/examples/example_base.h"
#include "ui/views/examples/examples_window.h"
-#include "ui/views/widget/widget_delegate.h"
ViewsExamplesApplicationDelegate::ViewsExamplesApplicationDelegate()
: app_(nullptr) {}
@@ -22,12 +21,6 @@ void ViewsExamplesApplicationDelegate::Initialize(mojo::ApplicationImpl* app) {
mus_views_init_.reset(new MUSViewsInit(app));
- // TODO(sky): total hack! This is necessary as WindowTypeLauncherView is
- // created before AuraInit. WindowTypeLauncherView uses resources that are
- // configured by MUSViewsInit once a View is created. By creating a Widget
- // here we ensure the necessary state has been setup.
- views::Widget::CreateWindow(new views::WidgetDelegateView);
-
views::examples::ShowExamplesWindow(views::examples::DO_NOTHING_ON_CLOSE,
nullptr, nullptr);
}
« no previous file with comments | « components/mus/example/common/mus_views_init.cc ('k') | components/mus/example/window_type_launcher/window_type_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698