| 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 CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ |
| 6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ | 6 #define CHROME_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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 static DevToolsWindow* CreateDevToolsWindowForWorker(Profile* profile); | 54 static DevToolsWindow* CreateDevToolsWindowForWorker(Profile* profile); |
| 55 static DevToolsWindow* OpenDevToolsWindow(RenderViewHost* inspected_rvh); | 55 static DevToolsWindow* OpenDevToolsWindow(RenderViewHost* inspected_rvh); |
| 56 static DevToolsWindow* ToggleDevToolsWindow(RenderViewHost* inspected_rvh, | 56 static DevToolsWindow* ToggleDevToolsWindow(RenderViewHost* inspected_rvh, |
| 57 DevToolsToggleAction action); | 57 DevToolsToggleAction action); |
| 58 static void InspectElement(RenderViewHost* inspected_rvh, int x, int y); | 58 static void InspectElement(RenderViewHost* inspected_rvh, int x, int y); |
| 59 | 59 |
| 60 virtual ~DevToolsWindow(); | 60 virtual ~DevToolsWindow(); |
| 61 | 61 |
| 62 // Overridden from DevToolsClientHost. | 62 // Overridden from DevToolsClientHost. |
| 63 virtual void InspectedTabClosing() OVERRIDE; | 63 virtual void InspectedTabClosing() OVERRIDE; |
| 64 virtual void TabReplaced(TabContents* new_tab) OVERRIDE; | 64 virtual void TabReplaced(content::WebContents* new_tab) OVERRIDE; |
| 65 RenderViewHost* GetRenderViewHost(); | 65 RenderViewHost* GetRenderViewHost(); |
| 66 | 66 |
| 67 void Show(DevToolsToggleAction action); | 67 void Show(DevToolsToggleAction action); |
| 68 | 68 |
| 69 TabContentsWrapper* tab_contents() { return tab_contents_; } | 69 TabContentsWrapper* tab_contents() { return tab_contents_; } |
| 70 Browser* browser() { return browser_; } // For tests. | 70 Browser* browser() { return browser_; } // For tests. |
| 71 bool is_docked() { return docked_; } | 71 bool is_docked() { return docked_; } |
| 72 content::DevToolsClientHost* devtools_client_host() { | 72 content::DevToolsClientHost* devtools_client_host() { |
| 73 return frontend_host_; | 73 return frontend_host_; |
| 74 } | 74 } |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 Browser* browser_; | 142 Browser* browser_; |
| 143 bool docked_; | 143 bool docked_; |
| 144 bool is_loaded_; | 144 bool is_loaded_; |
| 145 DevToolsToggleAction action_on_load_; | 145 DevToolsToggleAction action_on_load_; |
| 146 content::NotificationRegistrar registrar_; | 146 content::NotificationRegistrar registrar_; |
| 147 content::DevToolsClientHost* frontend_host_; | 147 content::DevToolsClientHost* frontend_host_; |
| 148 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); | 148 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ | 151 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ |
| OLD | NEW |