| 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 14 matching lines...) Expand all Loading... |
| 25 #include "third_party/skia/include/core/SkTypeface.h" | 25 #include "third_party/skia/include/core/SkTypeface.h" |
| 26 | 26 |
| 27 class MotermView : public mojo::ui::GaneshView, | 27 class MotermView : public mojo::ui::GaneshView, |
| 28 public mojo::ui::ChoreographerDelegate, | 28 public mojo::ui::ChoreographerDelegate, |
| 29 public mojo::ui::InputListener, | 29 public mojo::ui::InputListener, |
| 30 public MotermModel::Delegate, | 30 public MotermModel::Delegate, |
| 31 public MotermDriver::Client, | 31 public MotermDriver::Client, |
| 32 public mojo::terminal::Terminal { | 32 public mojo::terminal::Terminal { |
| 33 public: | 33 public: |
| 34 MotermView( | 34 MotermView( |
| 35 mojo::ApplicationImpl* app_impl, | 35 mojo::InterfaceHandle<mojo::ApplicationConnector> app_connector, |
| 36 mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request, | 36 mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request, |
| 37 mojo::InterfaceRequest<mojo::ServiceProvider> service_provider_request); | 37 mojo::InterfaceRequest<mojo::ServiceProvider> service_provider_request); |
| 38 ~MotermView() override; | 38 ~MotermView() override; |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 // |mojo::ui::GaneshView|: | 41 // |mojo::ui::GaneshView|: |
| 42 void OnPropertiesChanged(uint32_t old_scene_version, | 42 void OnPropertiesChanged(uint32_t old_scene_version, |
| 43 mojo::ui::ViewPropertiesPtr old_properties) override; | 43 mojo::ui::ViewPropertiesPtr old_properties) override; |
| 44 | 44 |
| 45 // |mojo::ui::ChoreographerDelegate|: | 45 // |mojo::ui::ChoreographerDelegate|: |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 int line_height_; | 107 int line_height_; |
| 108 int advance_width_; | 108 int advance_width_; |
| 109 | 109 |
| 110 // Keyboard state. | 110 // Keyboard state. |
| 111 bool keypad_application_mode_; | 111 bool keypad_application_mode_; |
| 112 | 112 |
| 113 DISALLOW_COPY_AND_ASSIGN(MotermView); | 113 DISALLOW_COPY_AND_ASSIGN(MotermView); |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 #endif // APPS_MOTERM_MOTERM_VIEW_H_ | 116 #endif // APPS_MOTERM_MOTERM_VIEW_H_ |
| OLD | NEW |