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

Side by Side Diff: services/navigation/public/interfaces/view.mojom

Issue 2038143003: Support link hovering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
Patch Set: . Created 4 years, 6 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/navigation/navigation_unittest.cc ('k') | services/navigation/view_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 module navigation.mojom; 5 module navigation.mojom;
6 6
7 import "components/mus/public/interfaces/window_tree.mojom"; 7 import "components/mus/public/interfaces/window_tree.mojom";
8 import "ui/gfx/geometry/mojo/geometry.mojom"; 8 import "ui/gfx/geometry/mojo/geometry.mojom";
9 import "url/mojo/url.mojom"; 9 import "url/mojo/url.mojom";
10 10
11 interface ViewFactory { 11 interface ViewFactory {
12 CreateView(ViewClient client, View& view); 12 CreateView(ViewClient client, View& view);
13 }; 13 };
14 14
15 interface ViewClient { 15 interface ViewClient {
16 LoadingStateChanged(bool is_loading); 16 LoadingStateChanged(bool is_loading);
17 NavigationStateChanged(url.mojom.Url url, 17 NavigationStateChanged(url.mojom.Url url,
18 string title, 18 string title,
19 bool can_go_back, 19 bool can_go_back,
20 bool can_go_forward); 20 bool can_go_forward);
21 LoadProgressChanged(double progress); 21 LoadProgressChanged(double progress);
22 UpdateHoverURL(url.mojom.Url url);
23
22 ViewCreated(View view, 24 ViewCreated(View view,
23 ViewClient& client, 25 ViewClient& client,
24 bool is_popup, 26 bool is_popup,
25 gfx.mojom.Rect initial_rect, 27 gfx.mojom.Rect initial_rect,
26 bool user_gesture); 28 bool user_gesture);
27 Close(); 29 Close();
28 }; 30 };
29 31
30 interface View { 32 interface View {
31 // Navigates the view to |url|. 33 // Navigates the view to |url|.
32 NavigateTo(url.mojom.Url url); 34 NavigateTo(url.mojom.Url url);
33 35
34 GoBack(); 36 GoBack();
35 GoForward(); 37 GoForward();
36 Reload(bool skip_cache); 38 Reload(bool skip_cache);
37 Stop(); 39 Stop();
38 40
39 // Obtains a Mus WindowTreeClient for the View, so it can be embedded in a 41 // Obtains a Mus WindowTreeClient for the View, so it can be embedded in a
40 // UI. 42 // UI.
41 GetWindowTreeClient(mus.mojom.WindowTreeClient& client); 43 GetWindowTreeClient(mus.mojom.WindowTreeClient& client);
42 44
43 ShowInterstitial(string html); 45 ShowInterstitial(string html);
44 HideInterstitial(); 46 HideInterstitial();
47
48 // The resize area is a rectangle in the bottom corner of the view that allows
49 // the top-level window containing the view to be interactively resized.
50 SetResizerSize(gfx.mojom.Size size);
45 }; 51 };
OLDNEW
« no previous file with comments | « services/navigation/navigation_unittest.cc ('k') | services/navigation/view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698