| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 // |mojo::InterfaceFactory<mojo::terminal::Terminal>|: | 64 // |mojo::InterfaceFactory<mojo::terminal::Terminal>|: |
| 65 void Create( | 65 void Create( |
| 66 mojo::ApplicationConnection* connection, | 66 mojo::ApplicationConnection* connection, |
| 67 mojo::InterfaceRequest<mojo::terminal::Terminal> request) override; | 67 mojo::InterfaceRequest<mojo::terminal::Terminal> request) override; |
| 68 | 68 |
| 69 // |mojo::terminal::Terminal| implementation: | 69 // |mojo::terminal::Terminal| implementation: |
| 70 void Connect(mojo::InterfaceRequest<mojo::files::File> terminal_file, | 70 void Connect(mojo::InterfaceRequest<mojo::files::File> terminal_file, |
| 71 bool force, | 71 bool force, |
| 72 const ConnectCallback& callback) override; | 72 const ConnectCallback& callback) override; |
| 73 void ConnectToClient(mojo::terminal::TerminalClientPtr terminal_client, | 73 void ConnectToClient( |
| 74 bool force, | 74 mojo::InterfaceHandle<mojo::terminal::TerminalClient> terminal_client, |
| 75 const ConnectToClientCallback& callback) override; | 75 bool force, |
| 76 const ConnectToClientCallback& callback) override; |
| 76 void GetSize(const GetSizeCallback& callback) override; | 77 void GetSize(const GetSizeCallback& callback) override; |
| 77 void SetSize(uint32_t rows, | 78 void SetSize(uint32_t rows, |
| 78 uint32_t columns, | 79 uint32_t columns, |
| 79 bool reset, | 80 bool reset, |
| 80 const SetSizeCallback& callback) override; | 81 const SetSizeCallback& callback) override; |
| 81 | 82 |
| 82 // If |force| is true, it will draw everything. Otherwise it will draw only if | 83 // If |force| is true, it will draw everything. Otherwise it will draw only if |
| 83 // |model_state_changes_| is dirty. | 84 // |model_state_changes_| is dirty. |
| 84 void ScheduleDraw(bool force); | 85 void ScheduleDraw(bool force); |
| 85 void DrawContent(SkCanvas* canvas); | 86 void DrawContent(SkCanvas* canvas); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 113 int line_height_; | 114 int line_height_; |
| 114 int advance_width_; | 115 int advance_width_; |
| 115 | 116 |
| 116 // Keyboard state. | 117 // Keyboard state. |
| 117 bool keypad_application_mode_; | 118 bool keypad_application_mode_; |
| 118 | 119 |
| 119 DISALLOW_COPY_AND_ASSIGN(MotermView); | 120 DISALLOW_COPY_AND_ASSIGN(MotermView); |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 #endif // APPS_MOTERM_MOTERM_VIEW_H_ | 123 #endif // APPS_MOTERM_MOTERM_VIEW_H_ |
| OLD | NEW |