OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_METRICS_BROWSER_TAB_STRIP_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_METRICS_BROWSER_TAB_STRIP_OBSERVER_H_ |
| 7 |
| 8 class TabStripModel; |
| 9 |
| 10 namespace content { |
| 11 class WebContents; |
| 12 } |
| 13 |
| 14 class BrowserTabStripObserver { |
| 15 public: |
| 16 virtual void TabInsertedAt(TabStripModel* tab_strip_model, |
| 17 content::WebContents* contents, |
| 18 int index, |
| 19 bool foreground) {} |
| 20 virtual void TabClosingAt(TabStripModel* tab_strip_model, |
| 21 content::WebContents* contents, |
| 22 int index) {} |
| 23 virtual void ActiveTabChanged(TabStripModel* tab_strip_model, |
| 24 content::WebContents* old_contents, |
| 25 content::WebContents* new_contents, |
| 26 int index, |
| 27 int reason) {} |
| 28 virtual void TabPinnedStateChanged(TabStripModel* tab_strip_model, |
| 29 content::WebContents* contents, |
| 30 int index) {} |
| 31 |
| 32 protected: |
| 33 virtual ~BrowserTabStripObserver() {} |
| 34 }; |
| 35 |
| 36 #endif // CHROME_BROWSER_METRICS_BROWSER_TAB_STRIP_OBSERVER_H_ |
OLD | NEW |