Skip to content

Commit

Permalink
Small fixes for Mojo docs
Browse files Browse the repository at this point in the history
Change-Id: I5c9b07a3252a6cc3c303c8da3ccd2252be72d242
Reviewed-on: https://chromium-review.googlesource.com/1158717
Commit-Queue: Tom McKee <tommckee@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#580221}
  • Loading branch information
tommckee1 authored and Commit Bot committed Aug 2, 2018
1 parent f5edd71 commit 1a5032f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/mojo_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ that message on the other endpoint. Message pipes are thus bidirectional.
A **mojom** file describes **interfaces** which describe strongly typed message
structures, similar to proto files.

Given a **mojom interface** and a **message pipe**, the two **message pipes**
Given a **mojom interface** and a **message pipe**, the two **endpoints**
can be given the labels **InterfacePtr** and **Binding**. This now describes a
strongly typed **message pipe** which transports messages described by the
**mojom interface**. The **InterfacePtr** is the **endpoint** which "sends"
Expand Down
11 changes: 8 additions & 3 deletions mojo/public/cpp/bindings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ For example, consider the following Mojom definitions:
```cpp
union Value {
int64 int_value;
float32 float_value;
float float_value;
string string_value;
};

Expand All @@ -678,12 +678,17 @@ interface Dictionary {
};
```

This generates a the following C++ interface:
This generates the following C++ interface:

```cpp
class Value {
public:
virtual ~Value() {}
~Value() {}
};

class Dictionary {
public:
virtual ~Dictionary() {}

virtual void AddValue(const std::string& key, ValuePtr value) = 0;
};
Expand Down

0 comments on commit 1a5032f

Please sign in to comment.