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

Side by Side Diff: chrome/browser/chromeos/chrome_interface_factory.cc

Issue 1684823004: Refactors keyboard related code so mash can use a keyboard (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge to trunk Created 4 years, 10 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 | « chrome/browser/chromeos/chrome_interface_factory.h ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/chromeos/chrome_interface_factory.h"
6
7 #include "chrome/browser/ui/ash/keyboard_ui_service.h"
8 #include "mojo/shell/public/cpp/connection.h"
9
10 namespace chromeos {
11
12 ChromeInterfaceFactory::ChromeInterfaceFactory() {}
13 ChromeInterfaceFactory::~ChromeInterfaceFactory() {}
14
15 bool ChromeInterfaceFactory::AcceptConnection(mojo::Connection* connection) {
16 connection->AddInterface(this);
17 return true;
18 }
19
20 void ChromeInterfaceFactory::Create(
21 mojo::Connection* connection,
22 mojo::InterfaceRequest<keyboard::mojom::Keyboard> request) {
23 if (!keyboard_ui_service_)
24 keyboard_ui_service_.reset(new KeyboardUIService);
25 keyboard_bindings_.AddBinding(keyboard_ui_service_.get(), std::move(request));
26 }
27
28 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/chrome_interface_factory.h ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698