summaryrefslogtreecommitdiffstats
path: root/mandoline/services/navigation/public/interfaces/navigation.mojom
blob: b461a2b52e61694f521f617575974860077b556c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module mojo;

import "network/public/interfaces/url_loader.mojom";

// Expresses a preference for where a navigation will be performed.
enum Target {
  // No preference
  DEFAULT,

  // In the same ViewManager node that the navigation was initiated
  SOURCE_NODE,

  // In a new ViewManager node
  NEW_NODE
};

// Embedders that support navigation of implement this interface.
interface NavigatorHost {
  RequestNavigate(Target target, URLRequest request);
  RequestNavigateHistory(int32 delta);

  // Applications call this to inform hosts of navigations they performed
  // locally. For example, pushState() navigations in an HTML application.
  DidNavigateLocally(string url);
};