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 "apps/moterm/gl_helper.h" | 8 #include "apps/moterm/gl_helper.h" |
9 #include "apps/moterm/moterm_driver.h" | 9 #include "apps/moterm/moterm_driver.h" |
10 #include "apps/moterm/moterm_model.h" | 10 #include "apps/moterm/moterm_model.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "mojo/common/binding_set.h" | 13 #include "mojo/common/binding_set.h" |
14 #include "mojo/public/cpp/application/interface_factory.h" | 14 #include "mojo/public/cpp/application/interface_factory.h" |
15 #include "mojo/public/cpp/application/service_provider_impl.h" | 15 #include "mojo/public/cpp/application/service_provider_impl.h" |
16 #include "mojo/public/cpp/bindings/callback.h" | 16 #include "mojo/public/cpp/bindings/callback.h" |
17 #include "mojo/public/cpp/bindings/interface_request.h" | 17 #include "mojo/public/cpp/bindings/interface_request.h" |
18 #include "mojo/services/surfaces/interfaces/surface_id.mojom.h" | 18 #include "mojo/services/surfaces/interfaces/surface_id.mojom.h" |
19 #include "mojo/services/terminal/interfaces/terminal.mojom.h" | 19 #include "mojo/services/terminal/interfaces/terminal.mojom.h" |
20 #include "mojo/services/view_manager/public/cpp/view_observer.h" | 20 #include "mojo/services/view_manager/cpp/view_observer.h" |
21 #include "skia/ext/refptr.h" | 21 #include "skia/ext/refptr.h" |
22 #include "third_party/skia/include/core/SkBitmapDevice.h" | 22 #include "third_party/skia/include/core/SkBitmapDevice.h" |
23 #include "third_party/skia/include/core/SkTypeface.h" | 23 #include "third_party/skia/include/core/SkTypeface.h" |
24 | 24 |
25 namespace mojo { | 25 namespace mojo { |
26 class Shell; | 26 class Shell; |
27 } | 27 } |
28 | 28 |
29 class MotermView : public mojo::ViewObserver, | 29 class MotermView : public mojo::ViewObserver, |
30 public GlHelper::Client, | 30 public GlHelper::Client, |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 119 |
120 skia::RefPtr<SkBitmapDevice> bitmap_device_; | 120 skia::RefPtr<SkBitmapDevice> bitmap_device_; |
121 | 121 |
122 // Keyboard state. | 122 // Keyboard state. |
123 bool keypad_application_mode_; | 123 bool keypad_application_mode_; |
124 | 124 |
125 DISALLOW_COPY_AND_ASSIGN(MotermView); | 125 DISALLOW_COPY_AND_ASSIGN(MotermView); |
126 }; | 126 }; |
127 | 127 |
128 #endif // APPS_MOTERM_MOTERM_VIEW_H_ | 128 #endif // APPS_MOTERM_MOTERM_VIEW_H_ |
OLD | NEW |