Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Unified Diff: ui/views/window/native_frame_view.cc

Issue 10867096: Make HWNDMessageHandler subclass WindowImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/views/window/native_frame_view.cc
===================================================================
--- ui/views/window/native_frame_view.cc (revision 153552)
+++ ui/views/window/native_frame_view.cc (working copy)
@@ -7,10 +7,6 @@
#include "ui/views/widget/native_widget.h"
#include "ui/views/widget/widget.h"
-#if defined(OS_WIN) && !defined(USE_AURA)
-#include "ui/views/widget/native_widget_win.h"
-#endif
-
namespace views {
////////////////////////////////////////////////////////////////////////////////
@@ -35,10 +31,9 @@
const gfx::Rect& client_bounds) const {
#if defined(OS_WIN) && !defined(USE_AURA)
RECT rect = client_bounds.ToRECT();
- NativeWidgetWin* widget_win =
- static_cast<NativeWidgetWin*>(frame_->native_widget());
- AdjustWindowRectEx(&rect, widget_win->window_style(), FALSE,
- widget_win->window_ex_style());
+ DWORD style = ::GetWindowLong(GetWidget()->GetNativeView(), GWL_STYLE);
+ DWORD ex_style = ::GetWindowLong(GetWidget()->GetNativeView(), GWL_EXSTYLE);
+ AdjustWindowRectEx(&rect, style, FALSE, ex_style);
return gfx::Rect(rect);
#else
// TODO(sad):
« ui/views/win/hwnd_message_handler_delegate.h ('K') | « ui/views/win/hwnd_message_handler_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698