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

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

Issue 2576533003: Converts some services to use aura-mus (Closed)
Patch Set: remove log Created 4 years 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 | « no previous file | ash/autoclick/mus/autoclick_application.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 #ifndef ASH_AUTOCLICK_MUS_AUTOCLICK_APPLICATION_H_ 5 #ifndef ASH_AUTOCLICK_MUS_AUTOCLICK_APPLICATION_H_
6 #define ASH_AUTOCLICK_MUS_AUTOCLICK_APPLICATION_H_ 6 #define ASH_AUTOCLICK_MUS_AUTOCLICK_APPLICATION_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "ash/autoclick/common/autoclick_controller_common.h" 10 #include "ash/autoclick/common/autoclick_controller_common.h"
11 #include "ash/autoclick/common/autoclick_controller_common_delegate.h" 11 #include "ash/autoclick/common/autoclick_controller_common_delegate.h"
12 #include "ash/autoclick/mus/public/interfaces/autoclick.mojom.h" 12 #include "ash/autoclick/mus/public/interfaces/autoclick.mojom.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "mash/public/interfaces/launchable.mojom.h" 14 #include "mash/public/interfaces/launchable.mojom.h"
15 #include "mojo/public/cpp/bindings/binding.h" 15 #include "mojo/public/cpp/bindings/binding.h"
16 #include "services/service_manager/public/cpp/identity.h" 16 #include "services/service_manager/public/cpp/identity.h"
17 #include "services/service_manager/public/cpp/interface_registry.h" 17 #include "services/service_manager/public/cpp/interface_registry.h"
18 #include "services/service_manager/public/cpp/service.h" 18 #include "services/service_manager/public/cpp/service.h"
19 19
20 namespace views { 20 namespace views {
21 class AuraInit; 21 class AuraInit;
22 class Widget; 22 class Widget;
23 class WindowManagerConnection;
24 } 23 }
25 24
26 namespace ash { 25 namespace ash {
27 namespace autoclick { 26 namespace autoclick {
28 27
29 class AutoclickApplication 28 class AutoclickApplication
30 : public service_manager::Service, 29 : public service_manager::Service,
31 public mash::mojom::Launchable, 30 public mash::mojom::Launchable,
32 public mojom::AutoclickController, 31 public mojom::AutoclickController,
33 public service_manager::InterfaceFactory<mash::mojom::Launchable>, 32 public service_manager::InterfaceFactory<mash::mojom::Launchable>,
(...skipping 29 matching lines...) Expand all
63 void UpdateAutoclickRingWidget(views::Widget* widget, 62 void UpdateAutoclickRingWidget(views::Widget* widget,
64 const gfx::Point& event_location) override; 63 const gfx::Point& event_location) override;
65 void DoAutoclick(const gfx::Point& event_location, 64 void DoAutoclick(const gfx::Point& event_location,
66 const int mouse_event_flags) override; 65 const int mouse_event_flags) override;
67 void OnAutoclickCanceled() override; 66 void OnAutoclickCanceled() override;
68 67
69 mojo::Binding<mash::mojom::Launchable> launchable_binding_; 68 mojo::Binding<mash::mojom::Launchable> launchable_binding_;
70 mojo::Binding<mojom::AutoclickController> autoclick_binding_; 69 mojo::Binding<mojom::AutoclickController> autoclick_binding_;
71 70
72 std::unique_ptr<views::AuraInit> aura_init_; 71 std::unique_ptr<views::AuraInit> aura_init_;
73 std::unique_ptr<views::WindowManagerConnection> window_manager_connection_;
74 std::unique_ptr<AutoclickControllerCommon> autoclick_controller_common_; 72 std::unique_ptr<AutoclickControllerCommon> autoclick_controller_common_;
75 std::unique_ptr<views::Widget> widget_; 73 std::unique_ptr<views::Widget> widget_;
76 74
77 DISALLOW_COPY_AND_ASSIGN(AutoclickApplication); 75 DISALLOW_COPY_AND_ASSIGN(AutoclickApplication);
78 }; 76 };
79 77
80 } // namespace autoclick 78 } // namespace autoclick
81 } // namespace ash 79 } // namespace ash
82 80
83 #endif // ASH_AUTOCLICK_MUS_AUTOCLICK_APPLICATION_H_ 81 #endif // ASH_AUTOCLICK_MUS_AUTOCLICK_APPLICATION_H_
OLDNEW
« no previous file with comments | « no previous file | ash/autoclick/mus/autoclick_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698