Update for ui -> gfx moves in Chrome 31
See https://codereview.chromium.org/23769011.
This commit is contained in:
parent
9c5b81bf7a
commit
7e6f5aa734
2 changed files with 6 additions and 6 deletions
|
@ -2,13 +2,13 @@
|
||||||
#define BRIGHTRAY_BROWSER_WIN_DEVTOOLS_WINDOW_H_
|
#define BRIGHTRAY_BROWSER_WIN_DEVTOOLS_WINDOW_H_
|
||||||
|
|
||||||
#include "base/memory/weak_ptr.h"
|
#include "base/memory/weak_ptr.h"
|
||||||
#include "ui/base/win/window_impl.h"
|
#include "ui/gfx/win/window_impl.h"
|
||||||
|
|
||||||
namespace brightray {
|
namespace brightray {
|
||||||
|
|
||||||
class InspectableWebContentsViewWin;
|
class InspectableWebContentsViewWin;
|
||||||
|
|
||||||
class DevToolsWindow : public ui::WindowImpl,
|
class DevToolsWindow : public gfx::WindowImpl,
|
||||||
public base::SupportsWeakPtr<DevToolsWindow> {
|
public base::SupportsWeakPtr<DevToolsWindow> {
|
||||||
public:
|
public:
|
||||||
static DevToolsWindow* Create(
|
static DevToolsWindow* Create(
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#include "browser/win/devtools_window.h"
|
#include "browser/win/devtools_window.h"
|
||||||
|
|
||||||
#include "content/public/browser/web_contents_view.h"
|
#include "content/public/browser/web_contents_view.h"
|
||||||
#include "ui/base/win/hwnd_util.h"
|
#include "ui/gfx/win/hwnd_util.h"
|
||||||
|
|
||||||
namespace brightray {
|
namespace brightray {
|
||||||
|
|
||||||
|
@ -44,9 +44,9 @@ void InspectableWebContentsViewWin::ShowDevTools() {
|
||||||
auto contents_view = inspectable_web_contents_->GetWebContents()->GetView();
|
auto contents_view = inspectable_web_contents_->GetWebContents()->GetView();
|
||||||
auto size = contents_view->GetContainerSize();
|
auto size = contents_view->GetContainerSize();
|
||||||
size.Enlarge(-kWindowInset, -kWindowInset);
|
size.Enlarge(-kWindowInset, -kWindowInset);
|
||||||
ui::CenterAndSizeWindow(contents_view->GetNativeView(),
|
gfx::CenterAndSizeWindow(contents_view->GetNativeView(),
|
||||||
devtools_window_->hwnd(),
|
devtools_window_->hwnd(),
|
||||||
size);
|
size);
|
||||||
|
|
||||||
ShowWindow(devtools_window_->hwnd(), SW_SHOWNORMAL);
|
ShowWindow(devtools_window_->hwnd(), SW_SHOWNORMAL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue