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

Side by Side Diff: mash/browser_driver/browser_driver_application_delegate.cc

Issue 1956093002: mus: Move event_matcher_util.h/cc into components/mus/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/browser_driver/browser_driver_application_delegate.h" 5 #include "mash/browser_driver/browser_driver_application_delegate.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 "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "components/mus/public/cpp/event_matcher_util.h" 11 #include "components/mus/common/event_matcher_util.h"
12 #include "mash/public/interfaces/launchable.mojom.h" 12 #include "mash/public/interfaces/launchable.mojom.h"
13 #include "services/shell/public/cpp/connection.h" 13 #include "services/shell/public/cpp/connection.h"
14 #include "services/shell/public/cpp/connector.h" 14 #include "services/shell/public/cpp/connector.h"
15 15
16 using mash::mojom::LaunchablePtr; 16 using mash::mojom::LaunchablePtr;
17 using mash::mojom::LaunchMode; 17 using mash::mojom::LaunchMode;
18 18
19 namespace mash { 19 namespace mash {
20 namespace browser_driver { 20 namespace browser_driver {
21 namespace { 21 namespace {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 for (const AcceleratorSpec& spec : g_spec) { 117 for (const AcceleratorSpec& spec : g_spec) {
118 registrar->AddAccelerator( 118 registrar->AddAccelerator(
119 static_cast<uint32_t>(spec.id), 119 static_cast<uint32_t>(spec.id),
120 mus::CreateKeyMatcher(spec.keyboard_code, spec.event_flags), 120 mus::CreateKeyMatcher(spec.keyboard_code, spec.event_flags),
121 base::Bind(&AssertTrue)); 121 base::Bind(&AssertTrue));
122 } 122 }
123 } 123 }
124 124
125 } // namespace browser_driver 125 } // namespace browser_driver
126 } // namespace mash 126 } // namespace mash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698