| OLD | NEW |
| 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 "mojo/public/cpp/application/application.h" | 5 #include "mojo/public/cpp/application/application.h" |
| 6 #include "mojo/services/navigation/navigation.mojom.h" | |
| 7 #include "mojo/services/public/cpp/view_manager/node.h" | 6 #include "mojo/services/public/cpp/view_manager/node.h" |
| 8 #include "mojo/services/public/cpp/view_manager/types.h" | 7 #include "mojo/services/public/cpp/view_manager/types.h" |
| 9 #include "mojo/services/public/cpp/view_manager/view.h" | 8 #include "mojo/services/public/cpp/view_manager/view.h" |
| 10 #include "mojo/services/public/cpp/view_manager/view_manager.h" | 9 #include "mojo/services/public/cpp/view_manager/view_manager.h" |
| 11 #include "mojo/services/public/cpp/view_manager/view_manager_delegate.h" | 10 #include "mojo/services/public/cpp/view_manager/view_manager_delegate.h" |
| 11 #include "mojo/services/public/interfaces/navigation/navigation.mojom.h" |
| 12 | 12 |
| 13 namespace mojo { | 13 namespace mojo { |
| 14 namespace examples { | 14 namespace examples { |
| 15 | 15 |
| 16 class HTMLViewer; | 16 class HTMLViewer; |
| 17 | 17 |
| 18 class NavigatorImpl : public InterfaceImpl<navigation::Navigator> { | 18 class NavigatorImpl : public InterfaceImpl<navigation::Navigator> { |
| 19 public: | 19 public: |
| 20 explicit NavigatorImpl(HTMLViewer* viewer) : viewer_(viewer) {} | 20 explicit NavigatorImpl(HTMLViewer* viewer) : viewer_(viewer) {} |
| 21 virtual ~NavigatorImpl() {} | 21 virtual ~NavigatorImpl() {} |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 } | 92 } |
| 93 | 93 |
| 94 } | 94 } |
| 95 | 95 |
| 96 // static | 96 // static |
| 97 Application* Application::Create() { | 97 Application* Application::Create() { |
| 98 return new examples::HTMLViewer; | 98 return new examples::HTMLViewer; |
| 99 } | 99 } |
| 100 | 100 |
| 101 } | 101 } |
| OLD | NEW |