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

Side by Side Diff: ios/chrome/browser/tabs/tab_parenting_observer.mm

Issue 2708733003: WebStateListObserver methods have default implementation. (Closed)
Patch Set: Created 3 years, 10 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 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
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) {}
OLDNEW
« no previous file with comments | « ios/chrome/browser/tabs/tab_parenting_observer.h ('k') | ios/shared/chrome/browser/tabs/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698