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

Side by Side Diff: services/kiosk_wm/navigator_host_impl.h

Issue 1531403003: Delete the ViewManager and WindowManager services. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-3
Patch Set: rebase Created 4 years, 10 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
« no previous file with comments | « services/kiosk_wm/merged_service_provider.cc ('k') | services/kiosk_wm/navigator_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SERVICES_KIOSK_WM_NAVIGATOR_HOST_IMPL_H_
6 #define SERVICES_KIOSK_WM_NAVIGATOR_HOST_IMPL_H_
7
8 #include "base/memory/weak_ptr.h"
9 #include "mojo/common/binding_set.h"
10 #include "mojo/public/cpp/bindings/interface_request.h"
11 #include "mojo/services/navigation/interfaces/navigation.mojom.h"
12
13 namespace kiosk_wm {
14 class KioskWMController;
15
16 class NavigatorHostImpl : public mojo::NavigatorHost {
17 public:
18 NavigatorHostImpl(KioskWMController* kiosk_wm);
19 ~NavigatorHostImpl() override;
20
21 void Bind(mojo::InterfaceRequest<mojo::NavigatorHost> request);
22
23 void RecordNavigation(const std::string& url);
24
25 // mojo::NavigatorHost implementation:
26 void DidNavigateLocally(const mojo::String& url) override;
27 void RequestNavigate(mojo::Target target,
28 mojo::URLRequestPtr request) override;
29 void RequestNavigateHistory(int32_t delta) override;
30
31 private:
32 std::vector<std::string> history_;
33 int32_t current_index_;
34
35 KioskWMController* kiosk_wm_;
36 mojo::BindingSet<NavigatorHost> bindings_;
37
38 DISALLOW_COPY_AND_ASSIGN(NavigatorHostImpl);
39 };
40
41 } // namespace kiosk_wm
42
43 #endif // SERVICES_KIOSK_WM_NAVIGATOR_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « services/kiosk_wm/merged_service_provider.cc ('k') | services/kiosk_wm/navigator_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698