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

Unified Diff: examples/ui/tile/tile_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « examples/ui/tile/tile_app.cc ('k') | examples/ui/tile/tile_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/ui/tile/tile_view.h
diff --git a/examples/ui/tile/tile_view.h b/examples/ui/tile/tile_view.h
index 085e431e170c7a5614a6f285f2cbf306b6772e18..85f4b853ea0deb9587240037d419a5eba96d7645 100644
--- a/examples/ui/tile/tile_view.h
+++ b/examples/ui/tile/tile_view.h
@@ -8,6 +8,7 @@
#include <map>
#include <memory>
+#include "mojo/services/ui/views/interfaces/view_provider.mojom.h"
#include "mojo/ui/base_view.h"
namespace examples {
@@ -15,8 +16,8 @@ namespace examples {
class TileView : public mojo::ui::BaseView {
public:
TileView(mojo::ApplicationImpl* app_impl_,
- const std::vector<std::string>& view_urls,
- const mojo::ui::ViewProvider::CreateViewCallback& callback);
+ mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request,
+ const std::vector<std::string>& view_urls);
~TileView() override;
@@ -42,11 +43,6 @@ class TileView : public mojo::ui::BaseView {
const OnChildUnavailableCallback& callback) override;
void ConnectViews();
- void OnChildConnectionError(uint32_t child_key, const std::string& url);
- void OnChildCreated(uint32_t child_key,
- const std::string& url,
- mojo::ui::ViewProviderPtr provider,
- mojo::ui::ViewTokenPtr token);
void OnChildLayoutFinished(uint32_t child_key,
mojo::ui::ViewLayoutInfoPtr child_layout_info);
void FinishLayout();
« no previous file with comments | « examples/ui/tile/tile_app.cc ('k') | examples/ui/tile/tile_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698