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

Unified Diff: mojo/services/html_viewer/html_viewer.cc

Issue 393983004: Move mojo/examples/html_viewer to mojo/services/html_viewer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nuke 'examples' namespace Created 6 years, 5 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/services/html_viewer/html_document_view.cc ('k') | mojo/services/html_viewer/webmimeregistry_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/html_viewer/html_viewer.cc
diff --git a/mojo/examples/html_viewer/html_viewer.cc b/mojo/services/html_viewer/html_viewer.cc
similarity index 92%
rename from mojo/examples/html_viewer/html_viewer.cc
rename to mojo/services/html_viewer/html_viewer.cc
index 9fbf3a45061a0f6ad051c88243c00c573811d8c3..431bbacdca5bd722d580a8e6f85baea90c08d90e 100644
--- a/mojo/examples/html_viewer/html_viewer.cc
+++ b/mojo/services/html_viewer/html_viewer.cc
@@ -3,11 +3,11 @@
// found in the LICENSE file.
#include "base/message_loop/message_loop.h"
-#include "mojo/examples/html_viewer/blink_platform_impl.h"
-#include "mojo/examples/html_viewer/html_document_view.h"
#include "mojo/public/cpp/application/application_connection.h"
#include "mojo/public/cpp/application/application_delegate.h"
#include "mojo/public/cpp/application/application_impl.h"
+#include "mojo/services/html_viewer/blink_platform_impl.h"
+#include "mojo/services/html_viewer/html_document_view.h"
#include "mojo/services/public/cpp/view_manager/node.h"
#include "mojo/services/public/cpp/view_manager/types.h"
#include "mojo/services/public/cpp/view_manager/view.h"
@@ -17,7 +17,6 @@
#include "third_party/WebKit/public/web/WebKit.h"
namespace mojo {
-namespace examples {
class HTMLViewer;
@@ -102,16 +101,12 @@ void NavigatorImpl::Navigate(
uint32_t node_id,
navigation::NavigationDetailsPtr navigation_details,
navigation::ResponseDetailsPtr response_details) {
- printf("In HTMLViewer, rendering url: %s\n",
- response_details->response->url.data());
viewer_->Load(response_details->response.Pass());
}
-}
-
// static
ApplicationDelegate* ApplicationDelegate::Create() {
- return new examples::HTMLViewer;
+ return new HTMLViewer;
}
}
« no previous file with comments | « mojo/services/html_viewer/html_document_view.cc ('k') | mojo/services/html_viewer/webmimeregistry_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698