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

Unified Diff: chrome/browser/devtools/devtools_auto_opener.h

Issue 1691813003: Add --auto-open-devtools-for-tabs flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: close last DevToolsWindow Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/devtools/BUILD.gn ('k') | chrome/browser/devtools/devtools_auto_opener.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/devtools/devtools_auto_opener.h
diff --git a/chrome/browser/devtools/devtools_auto_opener.h b/chrome/browser/devtools/devtools_auto_opener.h
new file mode 100644
index 0000000000000000000000000000000000000000..d6851064baa510f356e6eec3e4669b0dc200a322
--- /dev/null
+++ b/chrome/browser/devtools/devtools_auto_opener.h
@@ -0,0 +1,27 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_AUTO_OPENER_H_
+#define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_AUTO_OPENER_H_
+
+#include "chrome/browser/ui/browser_tab_strip_tracker.h"
+#include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
+
+class DevToolsAutoOpener : public TabStripModelObserver {
+ public:
+ DevToolsAutoOpener();
+ ~DevToolsAutoOpener() override;
+
+ private:
+ // TabStripModelObserver overrides.
+ void TabInsertedAt(content::WebContents* contents,
+ int index,
+ bool foreground) override;
+
+ BrowserTabStripTracker browser_tab_strip_tracker_;
+
+ DISALLOW_COPY_AND_ASSIGN(DevToolsAutoOpener);
+};
+
+#endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_AUTO_OPENER_H_
« no previous file with comments | « chrome/browser/devtools/BUILD.gn ('k') | chrome/browser/devtools/devtools_auto_opener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698