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

Unified Diff: chrome/browser/ui/views/sidebar/sidebar_tab_strip_host_win.cc

Issue 6250141: Sidebar mini tabs UI (views version).... Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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: 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

Powered by Google App Engine
This is Rietveld 408576698