OLD | NEW |
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 #ifndef MASH_BROWSER_DRIVER_BROWSER_DRIVER_APPLICATION_DELEGATE_H_ | 5 #ifndef MASH_BROWSER_DRIVER_BROWSER_DRIVER_APPLICATION_DELEGATE_H_ |
6 #define MASH_BROWSER_DRIVER_BROWSER_DRIVER_APPLICATION_DELEGATE_H_ | 6 #define MASH_BROWSER_DRIVER_BROWSER_DRIVER_APPLICATION_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 13 matching lines...) Expand all Loading... |
24 public mus::mojom::AcceleratorHandler { | 24 public mus::mojom::AcceleratorHandler { |
25 public: | 25 public: |
26 BrowserDriverApplicationDelegate(); | 26 BrowserDriverApplicationDelegate(); |
27 ~BrowserDriverApplicationDelegate() override; | 27 ~BrowserDriverApplicationDelegate() override; |
28 | 28 |
29 private: | 29 private: |
30 // mojo::ShellClient: | 30 // mojo::ShellClient: |
31 void Initialize(mojo::Connector* connector, const mojo::Identity& identity, | 31 void Initialize(mojo::Connector* connector, const mojo::Identity& identity, |
32 uint32_t id) override; | 32 uint32_t id) override; |
33 bool AcceptConnection(mojo::Connection* connection) override; | 33 bool AcceptConnection(mojo::Connection* connection) override; |
34 void ShellConnectionLost() override; | 34 bool ShellConnectionLost() override; |
35 | 35 |
36 // mus::mojom::AcceleratorHandler: | 36 // mus::mojom::AcceleratorHandler: |
37 void OnAccelerator(uint32_t id, mus::mojom::EventPtr event) override; | 37 void OnAccelerator(uint32_t id, mus::mojom::EventPtr event) override; |
38 | 38 |
39 void AddAccelerators(); | 39 void AddAccelerators(); |
40 | 40 |
41 mojo::Connector* connector_; | 41 mojo::Connector* connector_; |
42 mojo::Binding<mus::mojom::AcceleratorHandler> binding_; | 42 mojo::Binding<mus::mojom::AcceleratorHandler> binding_; |
43 base::WeakPtrFactory<BrowserDriverApplicationDelegate> weak_factory_; | 43 base::WeakPtrFactory<BrowserDriverApplicationDelegate> weak_factory_; |
44 | 44 |
45 DISALLOW_COPY_AND_ASSIGN(BrowserDriverApplicationDelegate); | 45 DISALLOW_COPY_AND_ASSIGN(BrowserDriverApplicationDelegate); |
46 }; | 46 }; |
47 | 47 |
48 } // namespace browser_driver | 48 } // namespace browser_driver |
49 } // namespace mash | 49 } // namespace mash |
50 | 50 |
51 #endif // MASH_BROWSER_DRIVER_BROWSER_DRIVER_APPLICATION_DELEGATE_H_ | 51 #endif // MASH_BROWSER_DRIVER_BROWSER_DRIVER_APPLICATION_DELEGATE_H_ |
OLD | NEW |