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

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

Issue 2057023002: Adds support for new-tab targeted loads initiated from the renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
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 #ifndef SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_DELEGATE_H_ 5 #ifndef SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_DELEGATE_H_
6 #define SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_DELEGATE_H_ 6 #define SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 namespace gfx { 10 namespace gfx {
(...skipping 18 matching lines...) Expand all
29 // user input event. 29 // user input event.
30 virtual void ViewCreated(View* source, 30 virtual void ViewCreated(View* source,
31 std::unique_ptr<View> new_view, 31 std::unique_ptr<View> new_view,
32 bool is_popup, 32 bool is_popup,
33 const gfx::Rect& requested_bounds, 33 const gfx::Rect& requested_bounds,
34 bool user_gesture) = 0; 34 bool user_gesture) = 0;
35 35
36 // Called when an action within the page has requested that the View be 36 // Called when an action within the page has requested that the View be
37 // closed. 37 // closed.
38 virtual void Close(View* source) = 0; 38 virtual void Close(View* source) = 0;
39
40 // Called when the application in the source view wants the delegate to
41 // navigate the view according to |params|.
42 virtual void OpenURL(View* source, mojom::OpenURLParamsPtr params) = 0;
39 }; 43 };
40 44
41 } // namespace navigation 45 } // namespace navigation
42 46
43 #endif // SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_DELEGATE_H_ 47 #endif // SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « services/navigation/public/cpp/view.cc ('k') | services/navigation/public/interfaces/view.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698