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

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

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
« no previous file with comments | « no previous file | ios/chrome/browser/tabs/tab_parenting_observer.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef IOS_CHROME_BROWSER_TABS_TAB_PARENTING_OBSERVER_H_ 5 #ifndef IOS_CHROME_BROWSER_TABS_TAB_PARENTING_OBSERVER_H_
6 #define IOS_CHROME_BROWSER_TABS_TAB_PARENTING_OBSERVER_H_ 6 #define IOS_CHROME_BROWSER_TABS_TAB_PARENTING_OBSERVER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #import "ios/shared/chrome/browser/tabs/web_state_list_observer.h" 9 #import "ios/shared/chrome/browser/tabs/web_state_list_observer.h"
10 10
11 class TabParentingObserver : public WebStateListObserver { 11 class TabParentingObserver : public WebStateListObserver {
12 public: 12 public:
13 TabParentingObserver(); 13 TabParentingObserver();
14 ~TabParentingObserver() override; 14 ~TabParentingObserver() override;
15 15
16 // WebStateListObserver implementation. 16 // WebStateListObserver implementation.
17 void WebStateInsertedAt(WebStateList* web_state_list, 17 void WebStateInsertedAt(WebStateList* web_state_list,
18 web::WebState* web_state, 18 web::WebState* web_state,
19 int index) override; 19 int index) override;
20 void WebStateMoved(WebStateList* web_state_list,
21 web::WebState* web_state,
22 int from_index,
23 int to_index) override;
24 void WebStateReplacedAt(WebStateList* web_state_list, 20 void WebStateReplacedAt(WebStateList* web_state_list,
25 web::WebState* old_web_state, 21 web::WebState* old_web_state,
26 web::WebState* new_web_state, 22 web::WebState* new_web_state,
27 int index) override; 23 int index) override;
28 void WebStateDetachedAt(WebStateList* web_state_list,
29 web::WebState* web_state,
30 int index) override;
31 24
32 private: 25 private:
33 DISALLOW_COPY_AND_ASSIGN(TabParentingObserver); 26 DISALLOW_COPY_AND_ASSIGN(TabParentingObserver);
34 }; 27 };
35 28
36 #endif // IOS_CHROME_BROWSER_TABS_TAB_PARENTING_OBSERVER_H_ 29 #endif // IOS_CHROME_BROWSER_TABS_TAB_PARENTING_OBSERVER_H_
OLDNEW
« no previous file with comments | « no previous file | ios/chrome/browser/tabs/tab_parenting_observer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698