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

Side by Side Diff: services/navigation/public/cpp/view_delegate.h

Issue 2046723002: Add navigation client lib for convenience (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@target
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/public/cpp/view.cc ('k') | no next file » | 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 2016 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_NAVIGATION_PUBLIC_CPP_VIEW_DELEGATE_H_
6 #define SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_DELEGATE_H_
7
8 #include <string>
9
10 class GURL;
11 namespace gfx {
12 class Rect;
13 }
14
15 namespace navigation {
16
17 class ViewDelegate {
18 public:
19 virtual ~ViewDelegate() {}
20
21 virtual void LoadingStateChanged(bool is_loading) {}
22
23 virtual void NavigationStateChanged(const GURL& url,
24 const std::string& title,
25 bool can_go_back,
26 bool can_go_forward) {}
27
28 virtual void LoadProgressChanged(double progress) {}
29
30 virtual void UpdateHoverURL(const GURL& url) {}
31
32 virtual void ViewCreated(mojom::ViewPtr view,
33 mojom::ViewClientRequest request,
34 bool is_popup,
35 const gfx::Rect& initial_bounds,
36 bool is_user_gesture) {}
37
38 virtual void Close() {}
39 };
40
41 } // namespace navigation
42
43 #endif // SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « services/navigation/public/cpp/view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698