| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 class DevToolsWindow | 29 class DevToolsWindow |
| 30 : public DevToolsClientHost, | 30 : public DevToolsClientHost, |
| 31 public NotificationObserver, | 31 public NotificationObserver, |
| 32 public TabContentsDelegate { | 32 public TabContentsDelegate { |
| 33 public: | 33 public: |
| 34 static const char kDevToolsApp[]; | 34 static const char kDevToolsApp[]; |
| 35 static TabContentsWrapper* GetDevToolsContents(TabContents* inspected_tab); | 35 static TabContentsWrapper* GetDevToolsContents(TabContents* inspected_tab); |
| 36 static DevToolsWindow* FindDevToolsWindow(RenderViewHost* window_rvh); | 36 static DevToolsWindow* FindDevToolsWindow(RenderViewHost* window_rvh); |
| 37 | 37 |
| 38 static DevToolsWindow* CreateDevToolsWindowForWorker(Profile* profile); |
| 38 static DevToolsWindow* OpenDevToolsWindow(RenderViewHost* inspected_rvh); | 39 static DevToolsWindow* OpenDevToolsWindow(RenderViewHost* inspected_rvh); |
| 39 static DevToolsWindow* ToggleDevToolsWindow(RenderViewHost* inspected_rvh, | 40 static DevToolsWindow* ToggleDevToolsWindow(RenderViewHost* inspected_rvh, |
| 40 DevToolsToggleAction action); | 41 DevToolsToggleAction action); |
| 41 static void InspectElement(RenderViewHost* inspected_rvh, int x, int y); | 42 static void InspectElement(RenderViewHost* inspected_rvh, int x, int y); |
| 42 | 43 |
| 43 virtual ~DevToolsWindow(); | 44 virtual ~DevToolsWindow(); |
| 44 | 45 |
| 45 // Overridden from DevToolsClientHost. | 46 // Overridden from DevToolsClientHost. |
| 46 virtual void SendMessageToClient(const IPC::Message& message); | 47 virtual void SendMessageToClient(const IPC::Message& message); |
| 47 virtual void InspectedTabClosing(); | 48 virtual void InspectedTabClosing(); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 bool docked_; | 110 bool docked_; |
| 110 bool is_loaded_; | 111 bool is_loaded_; |
| 111 DevToolsToggleAction action_on_load_; | 112 DevToolsToggleAction action_on_load_; |
| 112 NotificationRegistrar registrar_; | 113 NotificationRegistrar registrar_; |
| 113 typedef std::vector<DevToolsWindow*> DevToolsWindowList; | 114 typedef std::vector<DevToolsWindow*> DevToolsWindowList; |
| 114 static DevToolsWindowList instances_; | 115 static DevToolsWindowList instances_; |
| 115 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); | 116 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); |
| 116 }; | 117 }; |
| 117 | 118 |
| 118 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ | 119 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ |
| OLD | NEW |