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

Side by Side Diff: ash/touch_hud/mus/touch_hud_application.cc

Issue 2182643003: Remove shell::Connection* parameter to InterfaceFactory<T>::Create() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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 | « ash/touch_hud/mus/touch_hud_application.h ('k') | chrome/app/mash/mash_runner.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 "ash/touch_hud/mus/touch_hud_application.h" 5 #include "ash/touch_hud/mus/touch_hud_application.h"
6 6
7 #include "ash/public/interfaces/container.mojom.h" 7 #include "ash/public/interfaces/container.mojom.h"
8 #include "ash/touch_hud/touch_hud_renderer.h" 8 #include "ash/touch_hud/touch_hud_renderer.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 params.native_widget = new views::NativeWidgetMus( 96 params.native_widget = new views::NativeWidgetMus(
97 widget_, connector_, window, ui::mojom::SurfaceType::DEFAULT); 97 widget_, connector_, window, ui::mojom::SurfaceType::DEFAULT);
98 widget_->Init(params); 98 widget_->Init(params);
99 widget_->Show(); 99 widget_->Show();
100 } else { 100 } else {
101 widget_->Close(); 101 widget_->Close();
102 base::MessageLoop::current()->QuitWhenIdle(); 102 base::MessageLoop::current()->QuitWhenIdle();
103 } 103 }
104 } 104 }
105 105
106 void TouchHudApplication::Create(shell::Connection* connection, 106 void TouchHudApplication::Create(const shell::Identity& remote_identity,
107 mash::mojom::LaunchableRequest request) { 107 mash::mojom::LaunchableRequest request) {
108 binding_.Bind(std::move(request)); 108 binding_.Bind(std::move(request));
109 } 109 }
110 110
111 } // namespace touch_hud 111 } // namespace touch_hud
112 } // namespace ash 112 } // namespace ash
OLDNEW
« no previous file with comments | « ash/touch_hud/mus/touch_hud_application.h ('k') | chrome/app/mash/mash_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698