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; |
} |
} |