| Index: chrome/browser/ui/views/sidebar/sidebar_tab_strip_host_win.cc
|
| ===================================================================
|
| --- chrome/browser/ui/views/sidebar/sidebar_tab_strip_host_win.cc (revision 0)
|
| +++ chrome/browser/ui/views/sidebar/sidebar_tab_strip_host_win.cc (revision 0)
|
| @@ -0,0 +1,29 @@
|
| +// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chrome/browser/ui/views/sidebar/sidebar_tab_strip_host.h"
|
| +#include "views/widget/widget_win.h"
|
| +
|
| +views::Widget* SidebarTabStripHost::CreateHost() {
|
| + views::WidgetWin* widget = new views::WidgetWin();
|
| + // Don't let WidgetWin manage our lifetime, BrowserView owns us.
|
| + widget->set_delete_on_destroy(false);
|
| + widget->set_window_style(WS_CHILD | WS_CLIPCHILDREN);
|
| + widget->set_window_ex_style(WS_EX_TOPMOST);
|
| +
|
| + return widget;
|
| +}
|
| +
|
| +void SidebarTabStripHost::SetWidgetPositionNative(const gfx::Rect& new_pos,
|
| + bool no_redraw) {
|
| + DWORD swp_flags = SWP_NOOWNERZORDER;
|
| + if (no_redraw)
|
| + swp_flags |= SWP_NOREDRAW;
|
| + if (!host_->IsVisible())
|
| + swp_flags |= SWP_SHOWWINDOW;
|
| +
|
| + ::SetWindowPos(host_->GetNativeView(), HWND_TOP, new_pos.x(), new_pos.y(),
|
| + new_pos.width(), new_pos.height(), swp_flags);
|
| +}
|
| +
|
|
|
| Property changes on: chrome\browser\ui\views\sidebar\sidebar_tab_strip_host_win.cc
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|