summaryrefslogtreecommitdiffstats
path: root/chrome/views/non_client_view.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-12 19:29:06 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-12 19:29:06 +0000
commited8b1b805203b6ccdb5517d0c30cc689dde65e98 (patch)
tree88b8d0c2e552f291fbb01e8aa660806597e9d3fc /chrome/views/non_client_view.cc
parent71994cd0877f3528079b1154d46d90801e515292 (diff)
downloadchromium_src-ed8b1b805203b6ccdb5517d0c30cc689dde65e98.zip
chromium_src-ed8b1b805203b6ccdb5517d0c30cc689dde65e98.tar.gz
chromium_src-ed8b1b805203b6ccdb5517d0c30cc689dde65e98.tar.bz2
Make Widget return a gfx::NativeView instead of a HWND.
Review URL: http://codereview.chromium.org/43124 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11562 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/non_client_view.cc')
-rw-r--r--chrome/views/non_client_view.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/views/non_client_view.cc b/chrome/views/non_client_view.cc
index 18e90b7..46bea84 100644
--- a/chrome/views/non_client_view.cc
+++ b/chrome/views/non_client_view.cc
@@ -63,21 +63,21 @@ void NonClientView::SystemThemeChanged() {
// everything has settled down.
WINDOWPLACEMENT saved_window_placement;
saved_window_placement.length = sizeof(WINDOWPLACEMENT);
- GetWindowPlacement(frame_->GetHWND(), &saved_window_placement);
+ GetWindowPlacement(frame_->GetNativeView(), &saved_window_placement);
frame_->Hide();
// Important step: restore the window first, since our hiding hack doesn't
// work for maximized windows! We tell the frame not to allow itself to be
// made visible though, which removes the brief flicker.
frame_->set_force_hidden(true);
- ShowWindow(frame_->GetHWND(), SW_RESTORE);
+ ShowWindow(frame_->GetNativeView(), SW_RESTORE);
frame_->set_force_hidden(false);
SetUseNativeFrame(win_util::ShouldUseVistaFrame());
// Now that we've updated the frame, we'll want to restore our saved placement
// since the display should have settled down and we can be properly rendered.
- SetWindowPlacement(frame_->GetHWND(), &saved_window_placement);
+ SetWindowPlacement(frame_->GetNativeView(), &saved_window_placement);
}
void NonClientView::SetUseNativeFrame(bool use_native_frame) {