OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "chrome/browser/debugger/devtools_client_host.h" | 12 #include "chrome/browser/debugger/devtools_client_host.h" |
13 #include "chrome/browser/debugger/devtools_toggle_action.h" | 13 #include "chrome/browser/debugger/devtools_toggle_action.h" |
14 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 14 #include "chrome/browser/tab_contents/tab_contents_delegate.h" |
15 #include "chrome/common/notification_observer.h" | 15 #include "chrome/common/notification_observer.h" |
16 #include "chrome/common/notification_registrar.h" | 16 #include "chrome/common/notification_registrar.h" |
17 #include "chrome/common/notification_service.h" | |
18 | 17 |
19 namespace IPC { | 18 namespace IPC { |
20 class Message; | 19 class Message; |
21 } | 20 } |
22 | 21 |
23 class Browser; | 22 class Browser; |
24 class BrowserWindow; | 23 class BrowserWindow; |
25 class Profile; | 24 class Profile; |
26 class RenderViewHost; | 25 class RenderViewHost; |
27 class TabContentsWrapper; | 26 class TabContentsWrapper; |
(...skipping 14 matching lines...) Expand all Loading... |
42 virtual DevToolsWindow* AsDevToolsWindow(); | 41 virtual DevToolsWindow* AsDevToolsWindow(); |
43 virtual void SendMessageToClient(const IPC::Message& message); | 42 virtual void SendMessageToClient(const IPC::Message& message); |
44 virtual void InspectedTabClosing(); | 43 virtual void InspectedTabClosing(); |
45 | 44 |
46 void Show(DevToolsToggleAction action); | 45 void Show(DevToolsToggleAction action); |
47 void Activate(); | 46 void Activate(); |
48 void SetDocked(bool docked); | 47 void SetDocked(bool docked); |
49 RenderViewHost* GetRenderViewHost(); | 48 RenderViewHost* GetRenderViewHost(); |
50 | 49 |
51 TabContentsWrapper* tab_contents() { return tab_contents_; } | 50 TabContentsWrapper* tab_contents() { return tab_contents_; } |
52 Browser* browser() { return browser_; } // For tests. | 51 Browser* browser() { return browser_; } // For tests. |
53 bool is_docked() { return docked_; } | 52 bool is_docked() { return docked_; } |
54 | 53 |
55 private: | 54 private: |
56 void CreateDevToolsBrowser(); | 55 void CreateDevToolsBrowser(); |
57 bool FindInspectedBrowserAndTabIndex(Browser**, int* tab); | 56 bool FindInspectedBrowserAndTabIndex(Browser**, int* tab); |
58 BrowserWindow* GetInspectedBrowserWindow(); | 57 BrowserWindow* GetInspectedBrowserWindow(); |
59 void SetAttachedWindow(); | 58 void SetAttachedWindow(); |
60 | 59 |
61 // Overridden from NotificationObserver. | 60 // Overridden from NotificationObserver. |
62 virtual void Observe(NotificationType type, | 61 virtual void Observe(NotificationType type, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 TabContentsWrapper* tab_contents_; | 100 TabContentsWrapper* tab_contents_; |
102 Browser* browser_; | 101 Browser* browser_; |
103 bool docked_; | 102 bool docked_; |
104 bool is_loaded_; | 103 bool is_loaded_; |
105 DevToolsToggleAction action_on_load_; | 104 DevToolsToggleAction action_on_load_; |
106 NotificationRegistrar registrar_; | 105 NotificationRegistrar registrar_; |
107 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); | 106 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); |
108 }; | 107 }; |
109 | 108 |
110 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ | 109 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ |
OLD | NEW |