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

Side by Side Diff: mash/wm/root_window_controller.cc

Issue 1965073002: Rename gfx::Display to display::Display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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
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 "mash/wm/root_window_controller.h" 5 #include "mash/wm/root_window_controller.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "components/mus/common/event_matcher_util.h" 10 #include "components/mus/common/event_matcher_util.h"
(...skipping 29 matching lines...) Expand all
40 } 40 }
41 41
42 } // namespace 42 } // namespace
43 43
44 // static 44 // static
45 RootWindowController* RootWindowController::CreateFromDisplay( 45 RootWindowController* RootWindowController::CreateFromDisplay(
46 WindowManagerApplication* app, 46 WindowManagerApplication* app,
47 mus::mojom::DisplayPtr display, 47 mus::mojom::DisplayPtr display,
48 mojo::InterfaceRequest<mus::mojom::WindowTreeClient> client_request) { 48 mojo::InterfaceRequest<mus::mojom::WindowTreeClient> client_request) {
49 RootWindowController* controller = new RootWindowController(app); 49 RootWindowController* controller = new RootWindowController(app);
50 controller->display_ = display.To<gfx::Display>(); 50 controller->display_ = display.To<display::Display>();
51 mus::WindowTreeConnection::CreateForWindowManager( 51 mus::WindowTreeConnection::CreateForWindowManager(
52 controller, std::move(client_request), 52 controller, std::move(client_request),
53 mus::WindowTreeConnection::CreateType::DONT_WAIT_FOR_EMBED, 53 mus::WindowTreeConnection::CreateType::DONT_WAIT_FOR_EMBED,
54 controller->window_manager_.get()); 54 controller->window_manager_.get());
55 return controller; 55 return controller;
56 } 56 }
57 57
58 void RootWindowController::Destroy() { 58 void RootWindowController::Destroy() {
59 // See class description for details on lifetime. 59 // See class description for details on lifetime.
60 if (root_) { 60 if (root_) {
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 CreateContainer(mojom::Container::BUBBLES, mojom::Container::ROOT); 218 CreateContainer(mojom::Container::BUBBLES, mojom::Container::ROOT);
219 CreateContainer(mojom::Container::SYSTEM_MODAL_WINDOWS, 219 CreateContainer(mojom::Container::SYSTEM_MODAL_WINDOWS,
220 mojom::Container::ROOT); 220 mojom::Container::ROOT);
221 CreateContainer(mojom::Container::KEYBOARD, mojom::Container::ROOT); 221 CreateContainer(mojom::Container::KEYBOARD, mojom::Container::ROOT);
222 CreateContainer(mojom::Container::MENUS, mojom::Container::ROOT); 222 CreateContainer(mojom::Container::MENUS, mojom::Container::ROOT);
223 CreateContainer(mojom::Container::TOOLTIPS, mojom::Container::ROOT); 223 CreateContainer(mojom::Container::TOOLTIPS, mojom::Container::ROOT);
224 } 224 }
225 225
226 } // namespace wm 226 } // namespace wm
227 } // namespace mash 227 } // namespace mash
OLDNEW
« no previous file with comments | « mash/wm/root_window_controller.h ('k') | media/capture/video/linux/video_capture_device_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698