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

Unified Diff: mojo/examples/window_manager/window_manager.cc

Issue 549273002: Various mojom cleanup from ContentHandler changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 6 years, 3 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/examples/window_manager/debug_panel.cc ('k') | mojo/mojo.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/window_manager/window_manager.cc
diff --git a/mojo/examples/window_manager/window_manager.cc b/mojo/examples/window_manager/window_manager.cc
index e15453e6b6aa7542eff601e77c4152e8e9b1edb2..bdf960963b6ac22eb07d327d5fb301fe22da8e66 100644
--- a/mojo/examples/window_manager/window_manager.cc
+++ b/mojo/examples/window_manager/window_manager.cc
@@ -22,7 +22,6 @@
#include "mojo/services/public/cpp/view_manager/view_observer.h"
#include "mojo/services/public/cpp/view_manager/window_manager_delegate.h"
#include "mojo/services/public/interfaces/input_events/input_events.mojom.h"
-#include "mojo/services/public/interfaces/launcher/launcher.mojom.h"
#include "mojo/services/public/interfaces/navigation/navigation.mojom.h"
#include "mojo/services/window_manager/window_manager_app.h"
#include "mojo/views/views_init.h"
@@ -74,9 +73,7 @@ class NavigatorHostImpl : public InterfaceImpl<NavigatorHost> {
private:
virtual void DidNavigateLocally(const mojo::String& url) OVERRIDE;
- virtual void RequestNavigate(
- Target target,
- NavigationDetailsPtr nav_details) OVERRIDE;
+ virtual void RequestNavigate(Target target, URLRequestPtr request) OVERRIDE;
WindowManager* window_manager_;
Id view_id_;
@@ -342,11 +339,10 @@ class WindowManager
CloseWindow(windows_.back()->view()->id());
}
- virtual void RequestNavigate(
- uint32 source_view_id,
- Target target,
- NavigationDetailsPtr nav_details) OVERRIDE {
- OnLaunch(source_view_id, target, nav_details->request->url);
+ virtual void RequestNavigate(uint32 source_view_id,
+ Target target,
+ URLRequestPtr request) OVERRIDE {
+ OnLaunch(source_view_id, target, request->url);
}
private:
@@ -452,8 +448,6 @@ class WindowManager
// TODO(beng): proper layout manager!!
Id CreateLauncherUI() {
- NavigationDetailsPtr nav_details;
- ResponseDetailsPtr response;
View* view = view_manager_->GetViewById(content_view_id_);
gfx::Rect bounds = view->bounds();
bounds.Inset(kBorderInset, kBorderInset);
@@ -557,9 +551,8 @@ void NavigatorHostImpl::DidNavigateLocally(const mojo::String& url) {
window_manager_->DidNavigateLocally(view_id_, url);
}
-void NavigatorHostImpl::RequestNavigate(Target target,
- NavigationDetailsPtr nav_details) {
- window_manager_->RequestNavigate(view_id_, target, nav_details.Pass());
+void NavigatorHostImpl::RequestNavigate(Target target, URLRequestPtr request) {
+ window_manager_->RequestNavigate(view_id_, target, request.Pass());
}
} // namespace examples
« no previous file with comments | « mojo/examples/window_manager/debug_panel.cc ('k') | mojo/mojo.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698