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

Side by Side Diff: ash/autoclick/mus/autoclick_application.cc

Issue 2850743004: Replace ServiceInfo with BindSourceInfo. (Closed)
Patch Set: . Created 3 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
« no previous file with comments | « ash/autoclick/mus/autoclick_application.h ('k') | ash/mus/window_manager_application.h » ('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/autoclick/mus/autoclick_application.h" 5 #include "ash/autoclick/mus/autoclick_application.h"
6 6
7 #include "ash/public/cpp/shell_window_ids.h" 7 #include "ash/public/cpp/shell_window_ids.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 void AutoclickApplication::OnStart() { 88 void AutoclickApplication::OnStart() {
89 aura_init_ = base::MakeUnique<views::AuraInit>( 89 aura_init_ = base::MakeUnique<views::AuraInit>(
90 context()->connector(), context()->identity(), "views_mus_resources.pak", 90 context()->connector(), context()->identity(), "views_mus_resources.pak",
91 std::string(), nullptr, views::AuraInit::Mode::AURA_MUS); 91 std::string(), nullptr, views::AuraInit::Mode::AURA_MUS);
92 autoclick_controller_common_.reset(new AutoclickControllerCommon( 92 autoclick_controller_common_.reset(new AutoclickControllerCommon(
93 base::TimeDelta::FromMilliseconds(kDefaultAutoclickDelayMs), this)); 93 base::TimeDelta::FromMilliseconds(kDefaultAutoclickDelayMs), this));
94 } 94 }
95 95
96 void AutoclickApplication::OnBindInterface( 96 void AutoclickApplication::OnBindInterface(
97 const service_manager::ServiceInfo& remote_info, 97 const service_manager::BindSourceInfo& remote_info,
98 const std::string& interface_name, 98 const std::string& interface_name,
99 mojo::ScopedMessagePipeHandle interface_pipe) { 99 mojo::ScopedMessagePipeHandle interface_pipe) {
100 registry_.BindInterface(remote_info.identity, interface_name, 100 registry_.BindInterface(remote_info.identity, interface_name,
101 std::move(interface_pipe)); 101 std::move(interface_pipe));
102 } 102 }
103 103
104 void AutoclickApplication::Launch(uint32_t what, mash::mojom::LaunchMode how) { 104 void AutoclickApplication::Launch(uint32_t what, mash::mojom::LaunchMode how) {
105 if (!widget_) { 105 if (!widget_) {
106 widget_.reset(new views::Widget); 106 widget_.reset(new views::Widget);
107 views::Widget::InitParams params( 107 views::Widget::InitParams params(
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // TODO(riajiang): Currently not working. Need to know how to generate events 158 // TODO(riajiang): Currently not working. Need to know how to generate events
159 // in mus world (crbug.com/628665). 159 // in mus world (crbug.com/628665).
160 } 160 }
161 161
162 void AutoclickApplication::OnAutoclickCanceled() { 162 void AutoclickApplication::OnAutoclickCanceled() {
163 // Not used in mus. 163 // Not used in mus.
164 } 164 }
165 165
166 } // namespace autoclick 166 } // namespace autoclick
167 } // namespace ash 167 } // namespace ash
OLDNEW
« no previous file with comments | « ash/autoclick/mus/autoclick_application.h ('k') | ash/mus/window_manager_application.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698