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

Side by Side Diff: mash/login/login.cc

Issue 2429173005: Mus+Ash: Replace (Server)WindowSurface with (Server)WindowCompositorFrameSink (Closed)
Patch Set: Rebased Created 4 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 unified diff | Download patch
« no previous file with comments | « content/renderer/mus/render_widget_mus_connection.cc ('k') | mash/screenlock/screenlock.cc » ('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 "mash/login/login.h" 5 #include "mash/login/login.h"
6 6
7 #include <map> 7 #include <map>
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/public/cpp/shell_window_ids.h" 10 #include "ash/public/cpp/shell_window_ids.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 views::Widget::InitParams::TYPE_WINDOW_FRAMELESS); 48 views::Widget::InitParams::TYPE_WINDOW_FRAMELESS);
49 params.delegate = ui; 49 params.delegate = ui;
50 50
51 std::map<std::string, std::vector<uint8_t>> properties; 51 std::map<std::string, std::vector<uint8_t>> properties;
52 properties[ui::mojom::WindowManager::kInitialContainerId_Property] = 52 properties[ui::mojom::WindowManager::kInitialContainerId_Property] =
53 mojo::ConvertTo<std::vector<uint8_t>>( 53 mojo::ConvertTo<std::vector<uint8_t>>(
54 ash::kShellWindowId_LockScreenContainer); 54 ash::kShellWindowId_LockScreenContainer);
55 ui::Window* window = 55 ui::Window* window =
56 views::WindowManagerConnection::Get()->NewTopLevelWindow(properties); 56 views::WindowManagerConnection::Get()->NewTopLevelWindow(properties);
57 params.native_widget = new views::NativeWidgetMus( 57 params.native_widget = new views::NativeWidgetMus(
58 widget, window, ui::mojom::SurfaceType::DEFAULT); 58 widget, window, ui::mojom::CompositorFrameSinkType::DEFAULT);
59 widget->Init(params); 59 widget->Init(params);
60 widget->Show(); 60 widget->Show();
61 } 61 }
62 62
63 private: 63 private:
64 UI(Login* login, service_manager::Connector* connector) 64 UI(Login* login, service_manager::Connector* connector)
65 : login_(login), 65 : login_(login),
66 connector_(connector), 66 connector_(connector),
67 user_id_1_("00000000-0000-4000-8000-000000000000"), 67 user_id_1_("00000000-0000-4000-8000-000000000000"),
68 user_id_2_("00000000-0000-4000-8000-000000000001"), 68 user_id_2_("00000000-0000-4000-8000-000000000001"),
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 } 200 }
201 201
202 } // namespace 202 } // namespace
203 203
204 service_manager::Service* CreateLogin() { 204 service_manager::Service* CreateLogin() {
205 return new Login; 205 return new Login;
206 } 206 }
207 207
208 } // namespace login 208 } // namespace login
209 } // namespace main 209 } // namespace main
OLDNEW
« no previous file with comments | « content/renderer/mus/render_widget_mus_connection.cc ('k') | mash/screenlock/screenlock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698