Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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 IOS_SHARED_CHROME_BROWSER_TABS_WEB_STATE_OPENER_H_ | |
| 6 #define IOS_SHARED_CHROME_BROWSER_TABS_WEB_STATE_OPENER_H_ | |
| 7 | |
| 8 namespace web { | |
| 9 class WebState; | |
| 10 } | |
| 11 | |
| 12 // Represents the opener of a WebState. | |
| 13 struct WebStateOpener { | |
| 14 web::WebState* opener; | |
|
marq (ping after 24h)
2017/03/24 09:35:27
Comment on every field.
sdefresne
2017/03/24 10:08:10
Done.
| |
| 15 int navigation_index; | |
| 16 | |
| 17 // Creates WebStateOpener initialising the members from the parameters. If | |
| 18 // |navigation_index| is negative, it will be initialised from |opener|. | |
|
marq (ping after 24h)
2017/03/24 09:35:26
I dislike magic behavior for some values of intege
sdefresne
2017/03/24 10:08:10
Done.
| |
| 19 explicit WebStateOpener(web::WebState* opener, int navigation_index = -1); | |
| 20 | |
| 21 // Forbids default construction. | |
| 22 WebStateOpener() = delete; | |
| 23 }; | |
| 24 | |
| 25 #endif // IOS_SHARED_CHROME_BROWSER_TABS_WEB_STATE_OPENER_H_ | |
| OLD | NEW |