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

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

Issue 1682113003: Mojo C++ bindings: Generate InterfaceHandle<> instead of InterfacePtr<>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebase ontop of master, address trung's comments Created 4 years, 10 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 | « apps/moterm/moterm_app.cc ('k') | 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « apps/moterm/moterm_app.cc ('k') | apps/moterm/moterm_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698