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 APPS_MOTERM_MOTERM_VIEW_H_ | 5 #ifndef APPS_MOTERM_MOTERM_VIEW_H_ |
6 #define APPS_MOTERM_MOTERM_VIEW_H_ | 6 #define APPS_MOTERM_MOTERM_VIEW_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "apps/moterm/moterm_driver.h" | 10 #include "apps/moterm/moterm_driver.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 void OnResponse(const void* buf, size_t size) override; | 55 void OnResponse(const void* buf, size_t size) override; |
56 void OnSetKeypadMode(bool application_mode) override; | 56 void OnSetKeypadMode(bool application_mode) override; |
57 | 57 |
58 // |MotermDriver::Client|: | 58 // |MotermDriver::Client|: |
59 void OnDataReceived(const void* bytes, size_t num_bytes) override; | 59 void OnDataReceived(const void* bytes, size_t num_bytes) override; |
60 void OnClosed() override; | 60 void OnClosed() override; |
61 void OnDestroyed() override; | 61 void OnDestroyed() override; |
62 | 62 |
63 // |mojo::InterfaceFactory<mojo::terminal::Terminal>|: | 63 // |mojo::InterfaceFactory<mojo::terminal::Terminal>|: |
64 void Create( | 64 void Create( |
65 mojo::ApplicationConnection* connection, | 65 const mojo::ConnectionContext& connection_context, |
66 mojo::InterfaceRequest<mojo::terminal::Terminal> request) override; | 66 mojo::InterfaceRequest<mojo::terminal::Terminal> request) override; |
67 | 67 |
68 // |mojo::terminal::Terminal| implementation: | 68 // |mojo::terminal::Terminal| implementation: |
69 void Connect(mojo::InterfaceRequest<mojo::files::File> terminal_file, | 69 void Connect(mojo::InterfaceRequest<mojo::files::File> terminal_file, |
70 bool force, | 70 bool force, |
71 const ConnectCallback& callback) override; | 71 const ConnectCallback& callback) override; |
72 void ConnectToClient( | 72 void ConnectToClient( |
73 mojo::InterfaceHandle<mojo::terminal::TerminalClient> terminal_client, | 73 mojo::InterfaceHandle<mojo::terminal::TerminalClient> terminal_client, |
74 bool force, | 74 bool force, |
75 const ConnectToClientCallback& callback) override; | 75 const ConnectToClientCallback& callback) override; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 int line_height_; | 114 int line_height_; |
115 int advance_width_; | 115 int advance_width_; |
116 | 116 |
117 // Keyboard state. | 117 // Keyboard state. |
118 bool keypad_application_mode_; | 118 bool keypad_application_mode_; |
119 | 119 |
120 DISALLOW_COPY_AND_ASSIGN(MotermView); | 120 DISALLOW_COPY_AND_ASSIGN(MotermView); |
121 }; | 121 }; |
122 | 122 |
123 #endif // APPS_MOTERM_MOTERM_VIEW_H_ | 123 #endif // APPS_MOTERM_MOTERM_VIEW_H_ |
OLD | NEW |