| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |