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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 private: | 60 private: |
61 DevToolsWindow(Profile* profile, RenderViewHost* inspected_rvh, bool docked); | 61 DevToolsWindow(Profile* profile, RenderViewHost* inspected_rvh, bool docked); |
62 | 62 |
63 void CreateDevToolsBrowser(); | 63 void CreateDevToolsBrowser(); |
64 bool FindInspectedBrowserAndTabIndex(Browser**, int* tab); | 64 bool FindInspectedBrowserAndTabIndex(Browser**, int* tab); |
65 BrowserWindow* GetInspectedBrowserWindow(); | 65 BrowserWindow* GetInspectedBrowserWindow(); |
66 bool IsInspectedBrowserPopupOrPanel(); | 66 bool IsInspectedBrowserPopupOrPanel(); |
67 void UpdateFrontendAttachedState(); | 67 void UpdateFrontendAttachedState(); |
68 | 68 |
69 // Overridden from NotificationObserver. | 69 // Overridden from NotificationObserver. |
70 virtual void Observe(NotificationType type, | 70 virtual void Observe(int type, |
71 const NotificationSource& source, | 71 const NotificationSource& source, |
72 const NotificationDetails& details); | 72 const NotificationDetails& details); |
73 | 73 |
74 void ScheduleAction(DevToolsToggleAction action); | 74 void ScheduleAction(DevToolsToggleAction action); |
75 void DoAction(); | 75 void DoAction(); |
76 GURL GetDevToolsUrl(); | 76 GURL GetDevToolsUrl(); |
77 void UpdateTheme(); | 77 void UpdateTheme(); |
78 void AddDevToolsExtensionsToClient(); | 78 void AddDevToolsExtensionsToClient(); |
79 void CallClientFunction(const string16& function_name, | 79 void CallClientFunction(const string16& function_name, |
80 const Value& arg); | 80 const Value& arg); |
(...skipping 28 matching lines...) Expand all Loading... |
109 bool docked_; | 109 bool docked_; |
110 bool is_loaded_; | 110 bool is_loaded_; |
111 DevToolsToggleAction action_on_load_; | 111 DevToolsToggleAction action_on_load_; |
112 NotificationRegistrar registrar_; | 112 NotificationRegistrar registrar_; |
113 typedef std::vector<DevToolsWindow*> DevToolsWindowList; | 113 typedef std::vector<DevToolsWindow*> DevToolsWindowList; |
114 static DevToolsWindowList instances_; | 114 static DevToolsWindowList instances_; |
115 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); | 115 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); |
116 }; | 116 }; |
117 | 117 |
118 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ | 118 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ |
OLD | NEW |