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

Side by Side 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: sort 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/message_loop/message_loop.h" 5 #include "base/message_loop/message_loop.h"
6 #include "mojo/examples/html_viewer/blink_platform_impl.h"
7 #include "mojo/examples/html_viewer/html_document_view.h"
8 #include "mojo/public/cpp/application/application_connection.h" 6 #include "mojo/public/cpp/application/application_connection.h"
9 #include "mojo/public/cpp/application/application_delegate.h" 7 #include "mojo/public/cpp/application/application_delegate.h"
10 #include "mojo/public/cpp/application/application_impl.h" 8 #include "mojo/public/cpp/application/application_impl.h"
9 #include "mojo/services/html_viewer/blink_platform_impl.h"
10 #include "mojo/services/html_viewer/html_document_view.h"
11 #include "mojo/services/public/cpp/view_manager/node.h" 11 #include "mojo/services/public/cpp/view_manager/node.h"
12 #include "mojo/services/public/cpp/view_manager/types.h" 12 #include "mojo/services/public/cpp/view_manager/types.h"
13 #include "mojo/services/public/cpp/view_manager/view.h" 13 #include "mojo/services/public/cpp/view_manager/view.h"
14 #include "mojo/services/public/cpp/view_manager/view_manager.h" 14 #include "mojo/services/public/cpp/view_manager/view_manager.h"
15 #include "mojo/services/public/cpp/view_manager/view_manager_delegate.h" 15 #include "mojo/services/public/cpp/view_manager/view_manager_delegate.h"
16 #include "mojo/services/public/interfaces/navigation/navigation.mojom.h" 16 #include "mojo/services/public/interfaces/navigation/navigation.mojom.h"
17 #include "third_party/WebKit/public/web/WebKit.h" 17 #include "third_party/WebKit/public/web/WebKit.h"
18 18
19 namespace mojo { 19 namespace mojo {
20 namespace examples { 20 namespace examples {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 HTMLDocumentView* document_view_; 95 HTMLDocumentView* document_view_;
96 URLResponsePtr response_; 96 URLResponsePtr response_;
97 97
98 DISALLOW_COPY_AND_ASSIGN(HTMLViewer); 98 DISALLOW_COPY_AND_ASSIGN(HTMLViewer);
99 }; 99 };
100 100
101 void NavigatorImpl::Navigate( 101 void NavigatorImpl::Navigate(
102 uint32_t node_id, 102 uint32_t node_id,
103 navigation::NavigationDetailsPtr navigation_details, 103 navigation::NavigationDetailsPtr navigation_details,
104 navigation::ResponseDetailsPtr response_details) { 104 navigation::ResponseDetailsPtr response_details) {
105 printf("In HTMLViewer, rendering url: %s\n",
106 response_details->response->url.data());
107 viewer_->Load(response_details->response.Pass()); 105 viewer_->Load(response_details->response.Pass());
108 } 106 }
109 107
110 } 108 }
111 109
112 // static 110 // static
113 ApplicationDelegate* ApplicationDelegate::Create() { 111 ApplicationDelegate* ApplicationDelegate::Create() {
114 return new examples::HTMLViewer; 112 return new examples::HTMLViewer;
115 } 113 }
116 114
117 } 115 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698