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_DEV_TOOLS_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_DEBUGGER_DEV_TOOLS_WINDOW_H_ |
6 #define CHROME_BROWSER_DEBUGGER_DEV_TOOLS_WINDOW_H_ | 6 #define CHROME_BROWSER_DEBUGGER_DEV_TOOLS_WINDOW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 class DevToolsWindow : public DevToolsClientHost, public NotificationObserver { | 25 class DevToolsWindow : public DevToolsClientHost, public NotificationObserver { |
26 public: | 26 public: |
27 static DevToolsWindow* CreateDevToolsWindow(Profile* profile, | 27 static DevToolsWindow* CreateDevToolsWindow(Profile* profile, |
28 RenderViewHost* inspected_rvh, | 28 RenderViewHost* inspected_rvh, |
29 bool docked); | 29 bool docked); |
30 | 30 |
31 static TabContents* GetDevToolsContents(TabContents* inspected_tab); | 31 static TabContents* GetDevToolsContents(TabContents* inspected_tab); |
32 | 32 |
33 virtual ~DevToolsWindow(); | 33 virtual ~DevToolsWindow(); |
34 virtual void Show() = 0; | 34 virtual void Show() = 0; |
| 35 virtual void Activate() = 0; |
35 bool is_docked() { return docked_; }; | 36 bool is_docked() { return docked_; }; |
36 RenderViewHost* GetRenderViewHost(); | 37 RenderViewHost* GetRenderViewHost(); |
37 | 38 |
38 // DevToolsClientHost override. | 39 // DevToolsClientHost override. |
39 virtual DevToolsWindow* AsDevToolsWindow(); | 40 virtual DevToolsWindow* AsDevToolsWindow(); |
40 virtual void SendMessageToClient(const IPC::Message& message); | 41 virtual void SendMessageToClient(const IPC::Message& message); |
41 | 42 |
42 // NotificationObserver override. | 43 // NotificationObserver override. |
43 virtual void Observe(NotificationType type, | 44 virtual void Observe(NotificationType type, |
44 const NotificationSource& source, | 45 const NotificationSource& source, |
(...skipping 12 matching lines...) Expand all Loading... |
57 | 58 |
58 private: | 59 private: |
59 static BrowserWindow* GetBrowserWindow(RenderViewHost* rvh); | 60 static BrowserWindow* GetBrowserWindow(RenderViewHost* rvh); |
60 NotificationRegistrar registrar_; | 61 NotificationRegistrar registrar_; |
61 | 62 |
62 bool docked_; | 63 bool docked_; |
63 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); | 64 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); |
64 }; | 65 }; |
65 | 66 |
66 #endif // CHROME_BROWSER_DEBUGGER_DEV_TOOLS_WINDOW_H_ | 67 #endif // CHROME_BROWSER_DEBUGGER_DEV_TOOLS_WINDOW_H_ |
OLD | NEW |