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

Side by Side Diff: components/mus/example/views_examples/views_examples_application_delegate.cc

Issue 1469733004: Moves components/mus/examples into mash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git add Created 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/mus/example/views_examples/views_examples_application_deleg ate.h"
6
7 #include "mojo/application/public/cpp/application_connection.h"
8 #include "mojo/application/public/cpp/application_impl.h"
9 #include "ui/views/examples/example_base.h"
10 #include "ui/views/examples/examples_window.h"
11 #include "ui/views/mus/aura_init.h"
12 #include "ui/views/mus/window_manager_connection.h"
13
14 ViewsExamplesApplicationDelegate::ViewsExamplesApplicationDelegate() {}
15
16 ViewsExamplesApplicationDelegate::~ViewsExamplesApplicationDelegate() {
17 }
18
19 void ViewsExamplesApplicationDelegate::Initialize(mojo::ApplicationImpl* app) {
20 tracing_.Initialize(app);
21 aura_init_.reset(new views::AuraInit(app, "views_mus_resources.pak"));
22
23 views::WindowManagerConnection::Create(app);
24
25 views::examples::ShowExamplesWindow(views::examples::DO_NOTHING_ON_CLOSE,
26 nullptr, nullptr);
27 }
28
29 bool ViewsExamplesApplicationDelegate::ConfigureIncomingConnection(
30 mojo::ApplicationConnection* connection) {
31 return false;
32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698