| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ | 5 #ifndef CONTENT_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ |
| 6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ | 6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 class DevToolsWindow | 32 class DevToolsWindow |
| 33 : public DevToolsClientHost, | 33 : public DevToolsClientHost, |
| 34 public NotificationObserver, | 34 public NotificationObserver, |
| 35 public TabContentsDelegate { | 35 public TabContentsDelegate { |
| 36 public: | 36 public: |
| 37 static const char kDevToolsApp[]; | 37 static const char kDevToolsApp[]; |
| 38 static TabContentsWrapper* GetDevToolsContents(TabContents* inspected_tab); | 38 static TabContentsWrapper* GetDevToolsContents(TabContents* inspected_tab); |
| 39 static DevToolsWindow* FindDevToolsWindow(RenderViewHost* window_rvh); | 39 static DevToolsWindow* FindDevToolsWindow(RenderViewHost* window_rvh); |
| 40 | 40 |
| 41 static DevToolsWindow* CreateDevToolsWindowForWorker(Profile* profile); |
| 41 static DevToolsWindow* OpenDevToolsWindow(RenderViewHost* inspected_rvh); | 42 static DevToolsWindow* OpenDevToolsWindow(RenderViewHost* inspected_rvh); |
| 42 static DevToolsWindow* ToggleDevToolsWindow(RenderViewHost* inspected_rvh, | 43 static DevToolsWindow* ToggleDevToolsWindow(RenderViewHost* inspected_rvh, |
| 43 DevToolsToggleAction action); | 44 DevToolsToggleAction action); |
| 44 static void InspectElement(RenderViewHost* inspected_rvh, int x, int y); | 45 static void InspectElement(RenderViewHost* inspected_rvh, int x, int y); |
| 45 | 46 |
| 46 virtual ~DevToolsWindow(); | 47 virtual ~DevToolsWindow(); |
| 47 | 48 |
| 48 // Overridden from DevToolsClientHost. | 49 // Overridden from DevToolsClientHost. |
| 49 virtual void SendMessageToClient(const IPC::Message& message); | 50 virtual void SendMessageToClient(const IPC::Message& message); |
| 50 virtual void InspectedTabClosing(); | 51 virtual void InspectedTabClosing(); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 bool docked_; | 114 bool docked_; |
| 114 bool is_loaded_; | 115 bool is_loaded_; |
| 115 DevToolsToggleAction action_on_load_; | 116 DevToolsToggleAction action_on_load_; |
| 116 NotificationRegistrar registrar_; | 117 NotificationRegistrar registrar_; |
| 117 typedef std::vector<DevToolsWindow*> DevToolsWindowList; | 118 typedef std::vector<DevToolsWindow*> DevToolsWindowList; |
| 118 static DevToolsWindowList instances_; | 119 static DevToolsWindowList instances_; |
| 119 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); | 120 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ | 123 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ |
| OLD | NEW |