| Index: views/widget/widget_win.cc
|
| diff --git a/views/widget/widget_win.cc b/views/widget/widget_win.cc
|
| index 2f7603a8af6e1eb2eecaf9c0348dcb7c7705ba9f..a7731e589f276d0b0306fd2c81ae93a3dccc07f0 100644
|
| --- a/views/widget/widget_win.cc
|
| +++ b/views/widget/widget_win.cc
|
| @@ -6,7 +6,6 @@
|
|
|
| #include <dwmapi.h>
|
|
|
| -#include "app/win/win_util.h"
|
| #include "base/string_util.h"
|
| #include "base/win/windows_version.h"
|
| #include "gfx/canvas_skia.h"
|
| @@ -35,6 +34,17 @@
|
|
|
| using ui::ViewProp;
|
|
|
| +namespace {
|
| +
|
| +// Returns whether the specified window is the current active window.
|
| +bool IsWindowActive(HWND hwnd) {
|
| + WINDOWINFO info;
|
| + return ::GetWindowInfo(hwnd, &info) &&
|
| + ((info.dwWindowStatus & WS_ACTIVECAPTION) != 0);
|
| +}
|
| +
|
| +} // namespace
|
| +
|
| namespace views {
|
|
|
| // Property used to link the HWND to its RootView.
|
| @@ -407,7 +417,7 @@ bool WidgetWin::IsVisible() const {
|
| }
|
|
|
| bool WidgetWin::IsActive() const {
|
| - return app::win::IsWindowActive(hwnd());
|
| + return IsWindowActive(hwnd());
|
| }
|
|
|
| bool WidgetWin::IsAccessibleWidget() const {
|
|
|