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

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

Issue 1679023006: Reify view ownership as a message pipe. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 17 matching lines...) Expand all
28 class MotermView : public mojo::ui::GaneshView, 28 class MotermView : public mojo::ui::GaneshView,
29 public mojo::ui::ChoreographerDelegate, 29 public mojo::ui::ChoreographerDelegate,
30 public mojo::ui::InputListener, 30 public mojo::ui::InputListener,
31 public MotermModel::Delegate, 31 public MotermModel::Delegate,
32 public MotermDriver::Client, 32 public MotermDriver::Client,
33 public mojo::InterfaceFactory<mojo::terminal::Terminal>, 33 public mojo::InterfaceFactory<mojo::terminal::Terminal>,
34 public mojo::terminal::Terminal { 34 public mojo::terminal::Terminal {
35 public: 35 public:
36 MotermView( 36 MotermView(
37 mojo::ApplicationImpl* app_impl, 37 mojo::ApplicationImpl* app_impl,
38 mojo::InterfaceRequest<mojo::ServiceProvider> service_provider_request, 38 mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request,
39 const mojo::ui::ViewProvider::CreateViewCallback& create_view_callback); 39 mojo::InterfaceRequest<mojo::ServiceProvider> service_provider_request);
40 ~MotermView() override; 40 ~MotermView() override;
41 41
42 private: 42 private:
43 // |mojo::ui::GaneshView|: 43 // |mojo::ui::GaneshView|:
44 void OnLayout(mojo::ui::ViewLayoutParamsPtr layout_params, 44 void OnLayout(mojo::ui::ViewLayoutParamsPtr layout_params,
45 mojo::Array<uint32_t> children_needing_layout, 45 mojo::Array<uint32_t> children_needing_layout,
46 const OnLayoutCallback& callback) override; 46 const OnLayoutCallback& callback) override;
47 47
48 // |mojo::ui::ChoreographerDelegate|: 48 // |mojo::ui::ChoreographerDelegate|:
49 void OnDraw(const mojo::gfx::composition::FrameInfo& frame_info, 49 void OnDraw(const mojo::gfx::composition::FrameInfo& frame_info,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 int line_height_; 113 int line_height_;
114 int advance_width_; 114 int advance_width_;
115 115
116 // Keyboard state. 116 // Keyboard state.
117 bool keypad_application_mode_; 117 bool keypad_application_mode_;
118 118
119 DISALLOW_COPY_AND_ASSIGN(MotermView); 119 DISALLOW_COPY_AND_ASSIGN(MotermView);
120 }; 120 };
121 121
122 #endif // APPS_MOTERM_MOTERM_VIEW_H_ 122 #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