| 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_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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 class BrowserWindow; | 22 class BrowserWindow; |
| 23 class Profile; | 23 class Profile; |
| 24 class RenderViewHost; | 24 class RenderViewHost; |
| 25 class TabContents; | 25 class TabContents; |
| 26 | 26 |
| 27 class DevToolsWindow | 27 class DevToolsWindow |
| 28 : public DevToolsClientHost, | 28 : public DevToolsClientHost, |
| 29 public NotificationObserver, | 29 public NotificationObserver, |
| 30 public TabContentsDelegate { | 30 public TabContentsDelegate { |
| 31 public: | 31 public: |
| 32 static const std::wstring kDevToolsApp; |
| 32 static TabContents* GetDevToolsContents(TabContents* inspected_tab); | 33 static TabContents* GetDevToolsContents(TabContents* inspected_tab); |
| 33 | 34 |
| 34 DevToolsWindow(Profile* profile, RenderViewHost* inspected_rvh, bool docked); | 35 DevToolsWindow(Profile* profile, RenderViewHost* inspected_rvh, bool docked); |
| 35 virtual ~DevToolsWindow(); | 36 virtual ~DevToolsWindow(); |
| 36 | 37 |
| 37 // Overridden from DevToolsClientHost. | 38 // Overridden from DevToolsClientHost. |
| 38 virtual DevToolsWindow* AsDevToolsWindow(); | 39 virtual DevToolsWindow* AsDevToolsWindow(); |
| 39 virtual void SendMessageToClient(const IPC::Message& message); | 40 virtual void SendMessageToClient(const IPC::Message& message); |
| 40 virtual void InspectedTabClosing(); | 41 virtual void InspectedTabClosing(); |
| 41 | 42 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 70 virtual void AddNewContents(TabContents* source, | 71 virtual void AddNewContents(TabContents* source, |
| 71 TabContents* new_contents, | 72 TabContents* new_contents, |
| 72 WindowOpenDisposition disposition, | 73 WindowOpenDisposition disposition, |
| 73 const gfx::Rect& initial_pos, | 74 const gfx::Rect& initial_pos, |
| 74 bool user_gesture) {} | 75 bool user_gesture) {} |
| 75 virtual void ActivateContents(TabContents* contents) {} | 76 virtual void ActivateContents(TabContents* contents) {} |
| 76 virtual void LoadingStateChanged(TabContents* source) {} | 77 virtual void LoadingStateChanged(TabContents* source) {} |
| 77 virtual void CloseContents(TabContents* source) {} | 78 virtual void CloseContents(TabContents* source) {} |
| 78 virtual void MoveContents(TabContents* source, const gfx::Rect& pos) {} | 79 virtual void MoveContents(TabContents* source, const gfx::Rect& pos) {} |
| 79 virtual bool IsPopup(TabContents* source) { return false; } | 80 virtual bool IsPopup(TabContents* source) { return false; } |
| 81 virtual bool CanReloadContents(TabContents* source) const { return false; } |
| 80 virtual void URLStarredChanged(TabContents* source, bool starred) {} | 82 virtual void URLStarredChanged(TabContents* source, bool starred) {} |
| 81 virtual void UpdateTargetURL(TabContents* source, const GURL& url) {} | 83 virtual void UpdateTargetURL(TabContents* source, const GURL& url) {} |
| 82 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) {} | 84 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) {} |
| 83 | 85 |
| 84 Profile* profile_; | 86 Profile* profile_; |
| 85 TabContents* inspected_tab_; | 87 TabContents* inspected_tab_; |
| 86 TabContents* tab_contents_; | 88 TabContents* tab_contents_; |
| 87 Browser* browser_; | 89 Browser* browser_; |
| 88 BrowserWindow* inspected_window_; | 90 BrowserWindow* inspected_window_; |
| 89 bool docked_; | 91 bool docked_; |
| 90 bool is_loaded_; | 92 bool is_loaded_; |
| 91 bool open_console_on_load_; | 93 bool open_console_on_load_; |
| 92 NotificationRegistrar registrar_; | 94 NotificationRegistrar registrar_; |
| 93 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); | 95 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); |
| 94 }; | 96 }; |
| 95 | 97 |
| 96 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ | 98 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ |
| OLD | NEW |