allow updating devtools title in undocked mode
This commit is contained in:
parent
97cf8ca609
commit
1f65b47e8e
4 changed files with 36 additions and 8 deletions
|
@ -14,6 +14,10 @@ class Widget;
|
|||
|
||||
namespace brightray {
|
||||
|
||||
namespace {
|
||||
class DevToolsWindowDelegate;
|
||||
}
|
||||
|
||||
class InspectableWebContentsImpl;
|
||||
|
||||
class InspectableWebContentsViewViews : public InspectableWebContentsView,
|
||||
|
@ -23,6 +27,10 @@ class InspectableWebContentsViewViews : public InspectableWebContentsView,
|
|||
InspectableWebContentsImpl* inspectable_web_contents_impl);
|
||||
~InspectableWebContentsViewViews();
|
||||
|
||||
DevToolsWindowDelegate* GetDevToolsWindowDelegate() const {
|
||||
return devtools_window_delegate_;
|
||||
}
|
||||
|
||||
// InspectableWebContentsView:
|
||||
views::View* GetView() override;
|
||||
views::View* GetWebView() override;
|
||||
|
@ -32,6 +40,7 @@ class InspectableWebContentsViewViews : public InspectableWebContentsView,
|
|||
void SetIsDocked(bool docked) override;
|
||||
void SetContentsResizingStrategy(
|
||||
const DevToolsContentsResizingStrategy& strategy) override;
|
||||
void SetTitle(const base::string16& title) override;
|
||||
|
||||
InspectableWebContentsImpl* inspectable_web_contents() {
|
||||
return inspectable_web_contents_;
|
||||
|
@ -51,6 +60,7 @@ class InspectableWebContentsViewViews : public InspectableWebContentsView,
|
|||
|
||||
DevToolsContentsResizingStrategy strategy_;
|
||||
bool devtools_visible_;
|
||||
DevToolsWindowDelegate* devtools_window_delegate_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(InspectableWebContentsViewViews);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue