| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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 #import "ios/chrome/browser/tabs/tab_parenting_observer.h" | 5 #import "ios/chrome/browser/tabs/tab_parenting_observer.h" |
| 6 | 6 |
| 7 #include "ios/chrome/browser/tab_parenting_global_observer.h" | 7 #include "ios/chrome/browser/tab_parenting_global_observer.h" |
| 8 #import "ios/chrome/browser/tabs/legacy_tab_helper.h" | 8 #import "ios/chrome/browser/tabs/legacy_tab_helper.h" |
| 9 #import "ios/chrome/browser/tabs/tab.h" | 9 #import "ios/chrome/browser/tabs/tab.h" |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 TabParentingObserver::TabParentingObserver() = default; | 23 TabParentingObserver::TabParentingObserver() = default; |
| 24 | 24 |
| 25 TabParentingObserver::~TabParentingObserver() = default; | 25 TabParentingObserver::~TabParentingObserver() = default; |
| 26 | 26 |
| 27 void TabParentingObserver::WebStateInsertedAt(WebStateList* web_state_list, | 27 void TabParentingObserver::WebStateInsertedAt(WebStateList* web_state_list, |
| 28 web::WebState* web_state, | 28 web::WebState* web_state, |
| 29 int index) { | 29 int index) { |
| 30 OnWebStateParented(web_state); | 30 OnWebStateParented(web_state); |
| 31 } | 31 } |
| 32 | 32 |
| 33 void TabParentingObserver::WebStateMoved(WebStateList* web_state_list, | |
| 34 web::WebState* web_state, | |
| 35 int from_index, | |
| 36 int to_index) {} | |
| 37 | |
| 38 void TabParentingObserver::WebStateReplacedAt(WebStateList* web_state_list, | 33 void TabParentingObserver::WebStateReplacedAt(WebStateList* web_state_list, |
| 39 web::WebState* old_web_state, | 34 web::WebState* old_web_state, |
| 40 web::WebState* new_web_state, | 35 web::WebState* new_web_state, |
| 41 int index) { | 36 int index) { |
| 42 OnWebStateParented(new_web_state); | 37 OnWebStateParented(new_web_state); |
| 43 } | 38 } |
| 44 | |
| 45 void TabParentingObserver::WebStateDetachedAt(WebStateList* web_state_list, | |
| 46 web::WebState* web_state, | |
| 47 int index) {} | |
| OLD | NEW |