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

Unified Diff: mojo/ui/gl_view.cc

Issue 1991853003: Make BaseView et al. take an ApplicationConnector instead of an ApplicationImpl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/ui/gl_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/ui/gl_view.cc
diff --git a/mojo/ui/gl_view.cc b/mojo/ui/gl_view.cc
index e3c80f57dc0cce1009f0b381568758aed9ef8c48..79b2c94b8df2e70a3e2f07a32f738dabb80bac14 100644
--- a/mojo/ui/gl_view.cc
+++ b/mojo/ui/gl_view.cc
@@ -5,19 +5,15 @@
#include "mojo/ui/gl_view.h"
#include "base/logging.h"
-#include "mojo/public/cpp/application/connect.h"
namespace mojo {
namespace ui {
-GLView::GLView(mojo::ApplicationImpl* app_impl,
- mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request,
+GLView::GLView(InterfaceHandle<ApplicationConnector> app_connector,
+ InterfaceRequest<ViewOwner> view_owner_request,
const std::string& label)
- : BaseView(app_impl, view_owner_request.Pass(), label),
- gl_renderer_(mojo::GLContext::CreateOffscreen(
- ApplicationConnectorPtr::Create(
- mojo::CreateApplicationConnector(app_impl->shell()))
- .get())) {}
+ : BaseView(app_connector.Pass(), view_owner_request.Pass(), label),
+ gl_renderer_(GLContext::CreateOffscreen(BaseView::app_connector())) {}
GLView::~GLView() {}
« no previous file with comments | « mojo/ui/gl_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698