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

Side by Side Diff: chrome/browser/devtools/devtools_auto_opener.h

Issue 2354673004: Add TabStripModel as a parameter of some functions in TabStripModelObserver (Closed)
Patch Set: Last nits Created 4 years, 3 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 | chrome/browser/devtools/devtools_auto_opener.cc » ('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 2016 The Chromium Authors. All rights reserved. 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 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 CHROME_BROWSER_DEVTOOLS_DEVTOOLS_AUTO_OPENER_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_AUTO_OPENER_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_AUTO_OPENER_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_AUTO_OPENER_H_
7 7
8 #include "chrome/browser/ui/browser_tab_strip_tracker.h" 8 #include "chrome/browser/ui/browser_tab_strip_tracker.h"
9 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" 9 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
10 10
11 class DevToolsAutoOpener : public TabStripModelObserver { 11 class DevToolsAutoOpener : public TabStripModelObserver {
12 public: 12 public:
13 DevToolsAutoOpener(); 13 DevToolsAutoOpener();
14 ~DevToolsAutoOpener() override; 14 ~DevToolsAutoOpener() override;
15 15
16 private: 16 private:
17 // TabStripModelObserver overrides. 17 // TabStripModelObserver overrides.
18 void TabInsertedAt(content::WebContents* contents, 18 void TabInsertedAt(TabStripModel* tab_strip_model,
19 content::WebContents* contents,
19 int index, 20 int index,
20 bool foreground) override; 21 bool foreground) override;
21 22
22 BrowserTabStripTracker browser_tab_strip_tracker_; 23 BrowserTabStripTracker browser_tab_strip_tracker_;
23 24
24 DISALLOW_COPY_AND_ASSIGN(DevToolsAutoOpener); 25 DISALLOW_COPY_AND_ASSIGN(DevToolsAutoOpener);
25 }; 26 };
26 27
27 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_AUTO_OPENER_H_ 28 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_AUTO_OPENER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_auto_opener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698