OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_DEBUGGER_DEV_TOOLS_WINDOW_H_ |
| 6 #define CHROME_BROWSER_DEBUGGER_DEV_TOOLS_WINDOW_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 |
| 10 #include "chrome/views/window_delegate.h" |
| 11 |
| 12 namespace IPC { |
| 13 class Message; |
| 14 } |
| 15 namespace views { |
| 16 class Window; |
| 17 } |
| 18 class DevToolsView; |
| 19 class TabContents; |
| 20 |
| 21 class DevToolsWindow : public views::WindowDelegate { |
| 22 public: |
| 23 DevToolsWindow(); |
| 24 virtual ~DevToolsWindow(); |
| 25 |
| 26 // Show inspector window for the tab |
| 27 void Show(int inspected_process_id, |
| 28 int inspected_view_id); |
| 29 |
| 30 void SendDevToolsClientMessage(const IPC::Message& message); |
| 31 |
| 32 private: |
| 33 // views::WindowDelegate methods: |
| 34 virtual std::wstring GetWindowTitle() const; |
| 35 virtual void WindowClosing(); |
| 36 virtual bool CanResize() const; |
| 37 virtual views::View* GetContentsView(); |
| 38 |
| 39 views::Window* window_; |
| 40 DevToolsView* tools_view_; |
| 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); |
| 43 }; |
| 44 |
| 45 #endif // CHROME_BROWSER_DEBUGGER_DEV_TOOLS_WINDOW_H_ |
| 46 |
OLD | NEW |