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

Unified Diff: components/pdf_viewer/pdf_viewer.cc

Issue 1679573002: Move shell interfaces into the shell.mojom namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate
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 | « components/mus/android_loader.cc ('k') | components/web_view/frame_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/pdf_viewer/pdf_viewer.cc
diff --git a/components/pdf_viewer/pdf_viewer.cc b/components/pdf_viewer/pdf_viewer.cc
index ce8e669ce4e16ce78ce40c93571d3eb31d424525..e3816ddba14f3044e366ae8741c3e3a35b2a1524 100644
--- a/components/pdf_viewer/pdf_viewer.cc
+++ b/components/pdf_viewer/pdf_viewer.cc
@@ -228,7 +228,7 @@ class PDFView : public mus::WindowTreeDelegate,
scoped_ptr<bitmap_uploader::BitmapUploader> bitmap_uploader_;
- mojo::Shell* shell_;
+ mojo::shell::mojom::Shell* shell_;
mus::Window* root_;
web_view::mojom::FramePtr frame_;
@@ -244,7 +244,7 @@ class PDFViewerApplicationDelegate
public mojo::InterfaceFactory<mus::mojom::WindowTreeClient> {
public:
PDFViewerApplicationDelegate(
- mojo::InterfaceRequest<mojo::Application> request,
+ mojo::ApplicationRequest request,
mojo::URLResponsePtr response,
const mojo::Callback<void()>& destruct_callback)
: app_(this,
@@ -318,29 +318,31 @@ class PDFViewerApplicationDelegate
DISALLOW_COPY_AND_ASSIGN(PDFViewerApplicationDelegate);
};
-class ContentHandlerImpl : public mojo::ContentHandler {
+class ContentHandlerImpl : public mojo::shell::mojom::ContentHandler {
public:
- ContentHandlerImpl(mojo::InterfaceRequest<ContentHandler> request)
+ ContentHandlerImpl(
+ mojo::InterfaceRequest<mojo::shell::mojom::ContentHandler> request)
: binding_(this, std::move(request)) {}
~ContentHandlerImpl() override {}
private:
- // ContentHandler:
+ // mojo::shell::mojom::ContentHandler:
void StartApplication(
- mojo::InterfaceRequest<mojo::Application> request,
+ mojo::ApplicationRequest request,
mojo::URLResponsePtr response,
const mojo::Callback<void()>& destruct_callback) override {
new PDFViewerApplicationDelegate(std::move(request), std::move(response),
destruct_callback);
}
- mojo::StrongBinding<mojo::ContentHandler> binding_;
+ mojo::StrongBinding<mojo::shell::mojom::ContentHandler> binding_;
DISALLOW_COPY_AND_ASSIGN(ContentHandlerImpl);
};
-class PDFViewer : public mojo::ApplicationDelegate,
- public mojo::InterfaceFactory<mojo::ContentHandler> {
+class PDFViewer
+ : public mojo::ApplicationDelegate,
+ public mojo::InterfaceFactory<mojo::shell::mojom::ContentHandler> {
public:
PDFViewer() {
v8::V8::InitializeICU();
@@ -363,7 +365,8 @@ class PDFViewer : public mojo::ApplicationDelegate,
// InterfaceFactory<ContentHandler>:
void Create(mojo::ApplicationConnection* connection,
- mojo::InterfaceRequest<mojo::ContentHandler> request) override {
+ mojo::InterfaceRequest<mojo::shell::mojom::ContentHandler>
+ request) override {
new ContentHandlerImpl(std::move(request));
}
« no previous file with comments | « components/mus/android_loader.cc ('k') | components/web_view/frame_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698