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

Side by Side Diff: services/ui/test_wm/test_wm.cc

Issue 2161993002: Start using display.mojom.Display in mus+ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@display_traits
Patch Set: Fixes. Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « services/ui/test_wm/BUILD.gn ('k') | services/ui/ws/display.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <utility>
6
5 #include "mojo/public/c/system/main.h" 7 #include "mojo/public/c/system/main.h"
6 #include "mojo/public/cpp/bindings/binding.h" 8 #include "mojo/public/cpp/bindings/binding.h"
7 #include "services/shell/public/cpp/application_runner.h" 9 #include "services/shell/public/cpp/application_runner.h"
8 #include "services/shell/public/cpp/connector.h" 10 #include "services/shell/public/cpp/connector.h"
9 #include "services/shell/public/cpp/service.h" 11 #include "services/shell/public/cpp/service.h"
10 #include "services/ui/public/cpp/window.h" 12 #include "services/ui/public/cpp/window.h"
11 #include "services/ui/public/cpp/window_manager_delegate.h" 13 #include "services/ui/public/cpp/window_manager_delegate.h"
12 #include "services/ui/public/cpp/window_tree_client.h" 14 #include "services/ui/public/cpp/window_tree_client.h"
13 #include "services/ui/public/cpp/window_tree_client_delegate.h" 15 #include "services/ui/public/cpp/window_tree_client_delegate.h"
14 #include "ui/display/display.h" 16 #include "ui/display/display.h"
15 #include "ui/display/mojo/display_type_converters.h"
16 17
17 namespace ui { 18 namespace ui {
18 namespace test { 19 namespace test {
19 20
20 class TestWM : public shell::Service, 21 class TestWM : public shell::Service,
21 public ui::WindowTreeClientDelegate, 22 public ui::WindowTreeClientDelegate,
22 public ui::WindowManagerDelegate { 23 public ui::WindowManagerDelegate {
23 public: 24 public:
24 TestWM() {} 25 TestWM() {}
25 ~TestWM() override { delete window_tree_client_; } 26 ~TestWM() override { delete window_tree_client_; }
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 DISALLOW_COPY_AND_ASSIGN(TestWM); 103 DISALLOW_COPY_AND_ASSIGN(TestWM);
103 }; 104 };
104 105
105 } // namespace test 106 } // namespace test
106 } // namespace ui 107 } // namespace ui
107 108
108 MojoResult MojoMain(MojoHandle shell_handle) { 109 MojoResult MojoMain(MojoHandle shell_handle) {
109 shell::ApplicationRunner runner(new ui::test::TestWM); 110 shell::ApplicationRunner runner(new ui::test::TestWM);
110 return runner.Run(shell_handle); 111 return runner.Run(shell_handle);
111 } 112 }
OLDNEW
« no previous file with comments | « services/ui/test_wm/BUILD.gn ('k') | services/ui/ws/display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698