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

Unified Diff: chrome/common/extensions/api/file_browser_private.idl

Issue 299443009: Add keyboard shortcuts in Files.app to open inspector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments. Created 6 years, 7 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
Index: chrome/common/extensions/api/file_browser_private.idl
diff --git a/chrome/common/extensions/api/file_browser_private.idl b/chrome/common/extensions/api/file_browser_private.idl
index cfe5c27e0098485ba014504f6ffcc0a7e717fdb4..1f847231c3a2ec0409d586ab1c7c42a062b2764f 100644
--- a/chrome/common/extensions/api/file_browser_private.idl
+++ b/chrome/common/extensions/api/file_browser_private.idl
@@ -81,6 +81,18 @@ enum SearchType { EXCLUDE_DIRECTORIES, SHARED_WITH_ME, OFFLINE, ALL };
// Zooming mode.
enum ZoomOperationType { in, out, reset };
+// Specifies how to open inspector.
+enum InspectionType {
+ // Open inspector for foreground page.
+ normal,
+ // Open inspector for foreground page and bring focus to the console.
+ console,
+ // Open inspector for foreground page in inspect element mode.
+ element,
+ // Open inspector for background page.
+ background
+};
+
// Device event type.
enum DeviceEventType {
// Device is added.
@@ -761,6 +773,10 @@ interface Functions {
// Moves the window to other user's desktop.
static void visitDesktop(DOMString profileId,
optional SimpleCallback callback);
+
+ // Opens inspector window.
+ // |type| InspectionType which specifies how to open inspector.
+ static void openInspector(InspectionType type);
};
interface Events {

Powered by Google App Engine
This is Rietveld 408576698