| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_DEBUGGER_DEVTOOLS_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ |
| 6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ | 6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 DevToolsClientHost* client_host); | 40 DevToolsClientHost* client_host); |
| 41 void UnregisterDevToolsClientHostFor(RenderViewHost* inspected_rvh); | 41 void UnregisterDevToolsClientHostFor(RenderViewHost* inspected_rvh); |
| 42 | 42 |
| 43 void ForwardToDevToolsAgent(RenderViewHost* client_rvh, | 43 void ForwardToDevToolsAgent(RenderViewHost* client_rvh, |
| 44 const IPC::Message& message); | 44 const IPC::Message& message); |
| 45 void ForwardToDevToolsAgent(DevToolsClientHost* from, | 45 void ForwardToDevToolsAgent(DevToolsClientHost* from, |
| 46 const IPC::Message& message); | 46 const IPC::Message& message); |
| 47 void ForwardToDevToolsClient(RenderViewHost* inspected_rvh, | 47 void ForwardToDevToolsClient(RenderViewHost* inspected_rvh, |
| 48 const IPC::Message& message); | 48 const IPC::Message& message); |
| 49 | 49 |
| 50 void ActivateWindow(RenderViewHost* client_rvn); |
| 50 void CloseWindow(RenderViewHost* client_rvn); | 51 void CloseWindow(RenderViewHost* client_rvn); |
| 51 void DockWindow(RenderViewHost* client_rvn); | 52 void DockWindow(RenderViewHost* client_rvn); |
| 52 void UndockWindow(RenderViewHost* client_rvn); | 53 void UndockWindow(RenderViewHost* client_rvn); |
| 53 | 54 |
| 54 void OpenDevToolsWindow(RenderViewHost* inspected_rvh); | 55 void OpenDevToolsWindow(RenderViewHost* inspected_rvh); |
| 55 | 56 |
| 56 // Starts element inspection in the devtools client. | 57 // Starts element inspection in the devtools client. |
| 57 // Creates one by means of OpenDevToolsWindow if no client | 58 // Creates one by means of OpenDevToolsWindow if no client |
| 58 // exists. | 59 // exists. |
| 59 void InspectElement(RenderViewHost* inspected_rvh, int x, int y); | 60 void InspectElement(RenderViewHost* inspected_rvh, int x, int y); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 typedef std::map<DevToolsClientHost*, RenderViewHost*> | 100 typedef std::map<DevToolsClientHost*, RenderViewHost*> |
| 100 ClientHostToInspectedRvhMap; | 101 ClientHostToInspectedRvhMap; |
| 101 ClientHostToInspectedRvhMap client_host_to_inspected_rvh_; | 102 ClientHostToInspectedRvhMap client_host_to_inspected_rvh_; |
| 102 RenderViewHost* inspected_rvh_for_reopen_; | 103 RenderViewHost* inspected_rvh_for_reopen_; |
| 103 bool in_initial_show_; | 104 bool in_initial_show_; |
| 104 | 105 |
| 105 DISALLOW_COPY_AND_ASSIGN(DevToolsManager); | 106 DISALLOW_COPY_AND_ASSIGN(DevToolsManager); |
| 106 }; | 107 }; |
| 107 | 108 |
| 108 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ | 109 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ |
| OLD | NEW |