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

Unified Diff: chrome/browser/debugger/devtools_window.h

Issue 3011002: Add "Inspect Element" shortcut to browser tabs (Closed)
Patch Set: Added TODO, fixed field setting, merged code Created 10 years, 5 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/debugger/devtools_toggle_action.h ('k') | chrome/browser/debugger/devtools_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/debugger/devtools_window.h
diff --git a/chrome/browser/debugger/devtools_window.h b/chrome/browser/debugger/devtools_window.h
index fbd14dc678b43a8f8c8b590a2cee83b33cd74197..0bdcd67f5b16d36fbd36d3363744917beb56319b 100644
--- a/chrome/browser/debugger/devtools_window.h
+++ b/chrome/browser/debugger/devtools_window.h
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/scoped_ptr.h"
#include "chrome/browser/debugger/devtools_client_host.h"
+#include "chrome/browser/debugger/devtools_toggle_action.h"
#include "chrome/browser/tab_contents/tab_contents_delegate.h"
#include "chrome/common/notification_registrar.h"
#include "chrome/common/notification_service.h"
@@ -40,7 +41,7 @@ class DevToolsWindow
virtual void SendMessageToClient(const IPC::Message& message);
virtual void InspectedTabClosing();
- void Show(bool open_console);
+ void Show(DevToolsToggleAction action);
void Activate();
void SetDocked(bool docked);
RenderViewHost* GetRenderViewHost();
@@ -59,8 +60,8 @@ class DevToolsWindow
const NotificationSource& source,
const NotificationDetails& details);
- void ScheduleOpenConsole();
- void DoOpenConsole();
+ void ScheduleAction(DevToolsToggleAction action);
+ void DoAction();
GURL GetDevToolsUrl();
void UpdateTheme();
@@ -96,7 +97,7 @@ class DevToolsWindow
Browser* browser_;
bool docked_;
bool is_loaded_;
- bool open_console_on_load_;
+ DevToolsToggleAction action_on_load_;
NotificationRegistrar registrar_;
DISALLOW_COPY_AND_ASSIGN(DevToolsWindow);
};
« no previous file with comments | « chrome/browser/debugger/devtools_toggle_action.h ('k') | chrome/browser/debugger/devtools_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698