2013-06-04 14:31:37 -04:00
|
|
|
#ifndef BRIGHTRAY_BROWSER_WIN_DEVTOOLS_WINDOW_H_
|
|
|
|
#define BRIGHTRAY_BROWSER_WIN_DEVTOOLS_WINDOW_H_
|
|
|
|
|
2014-07-07 14:27:23 -04:00
|
|
|
#include "base/memory/scoped_ptr.h"
|
2013-06-04 14:31:37 -04:00
|
|
|
#include "base/memory/weak_ptr.h"
|
2014-07-07 14:27:23 -04:00
|
|
|
|
|
|
|
namespace views {
|
|
|
|
class Widget;
|
|
|
|
}
|
2013-06-04 14:31:37 -04:00
|
|
|
|
|
|
|
namespace brightray {
|
|
|
|
|
|
|
|
class InspectableWebContentsViewWin;
|
|
|
|
|
2014-07-07 14:27:23 -04:00
|
|
|
class DevToolsWindow : public base::SupportsWeakPtr<DevToolsWindow> {
|
2013-06-04 14:31:37 -04:00
|
|
|
public:
|
2013-11-17 19:01:36 -05:00
|
|
|
static DevToolsWindow* Create(
|
|
|
|
InspectableWebContentsViewWin* inspectable_web_contents_view_win);
|
2013-06-04 14:31:37 -04:00
|
|
|
|
2014-07-07 14:27:23 -04:00
|
|
|
void Show();
|
|
|
|
void Close();
|
|
|
|
void Destroy();
|
2013-06-04 14:31:37 -04:00
|
|
|
|
|
|
|
private:
|
2013-11-17 19:01:36 -05:00
|
|
|
explicit DevToolsWindow(
|
|
|
|
InspectableWebContentsViewWin* inspectable_web_contents_view_win);
|
2013-06-04 14:31:37 -04:00
|
|
|
~DevToolsWindow();
|
|
|
|
|
|
|
|
InspectableWebContentsViewWin* controller_;
|
2014-07-07 14:27:23 -04:00
|
|
|
scoped_ptr<views::Widget> widget_;
|
2013-06-04 14:31:37 -04:00
|
|
|
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(DevToolsWindow);
|
|
|
|
};
|
|
|
|
|
2013-11-17 18:20:17 -05:00
|
|
|
} // namespace brightray
|
2013-06-04 14:31:37 -04:00
|
|
|
|
|
|
|
#endif
|