| 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_WIN_H_ | 5 #ifndef CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_WIN_H_ |
| 6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_WIN_H_ | 6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_WIN_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "chrome/browser/debugger/devtools_window.h" | 9 #include "chrome/browser/debugger/devtools_window.h" |
| 10 #include "chrome/views/window/window_delegate.h" | 10 #include "chrome/views/window/window_delegate.h" |
| 11 | 11 |
| 12 namespace views { | 12 namespace views { |
| 13 class Window; | 13 class Window; |
| 14 } | 14 } |
| 15 class DevToolsInstanceDescriptor; | |
| 16 class DevToolsView; | 15 class DevToolsView; |
| 17 class TabContents; | 16 class TabContents; |
| 18 | 17 |
| 19 class DevToolsWindowWin : public DevToolsWindow, | 18 class DevToolsWindowWin : public DevToolsWindow, |
| 20 public views::WindowDelegate { | 19 public views::WindowDelegate { |
| 21 public: | 20 public: |
| 22 virtual ~DevToolsWindowWin(); | 21 virtual ~DevToolsWindowWin(); |
| 23 | 22 |
| 24 // Show developer tools window. | 23 // DevToolsWindow implementation. |
| 25 virtual void Show(); | 24 virtual void Show(); |
| 26 virtual void Close(); | 25 virtual bool HasRenderViewHost(const RenderViewHost& rvh) const; |
| 26 |
| 27 virtual void InspectedTabClosing(); |
| 28 virtual void SendMessageToClient(const IPC::Message& message); |
| 27 | 29 |
| 28 private: | 30 private: |
| 29 friend class DevToolsWindow; | 31 friend class DevToolsWindow; |
| 30 explicit DevToolsWindowWin(DevToolsView* view); | 32 DevToolsWindowWin(DevToolsView* view); |
| 31 | 33 |
| 32 // views::WindowDelegate methods: | 34 // views::WindowDelegate methods: |
| 33 virtual std::wstring GetWindowTitle() const; | 35 virtual std::wstring GetWindowTitle() const; |
| 34 virtual void WindowClosing(); | 36 virtual void WindowClosing(); |
| 35 virtual bool CanResize() const; | 37 virtual bool CanResize() const; |
| 36 virtual views::View* GetContentsView(); | 38 virtual views::View* GetContentsView(); |
| 37 virtual void DeleteDelegate(); | 39 virtual void DeleteDelegate(); |
| 38 | 40 |
| 39 DevToolsView* tools_view_; | 41 DevToolsView* tools_view_; |
| 40 | 42 |
| 41 DISALLOW_COPY_AND_ASSIGN(DevToolsWindowWin); | 43 DISALLOW_COPY_AND_ASSIGN(DevToolsWindowWin); |
| 42 }; | 44 }; |
| 43 | 45 |
| 44 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_WIN_H_ | 46 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_WIN_H_ |
| OLD | NEW |