Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: apps/moterm/moterm_view.h

Issue 1975993002: Change InterfaceFactory<I>::Create() to take a ConnectionContext instead of an ApplicationConnectio… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | apps/moterm/moterm_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | apps/moterm/moterm_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698