| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/views/tabs/dragged_tab_controller.h" | 5 #include "chrome/browser/views/tabs/dragged_tab_controller.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "app/animation.h" | 10 #include "app/animation.h" |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 ALLOW_THIS_IN_INITIALIZER_LIST(animation_(this)), | 191 ALLOW_THIS_IN_INITIALIZER_LIST(animation_(this)), |
| 192 hidden_(false), | 192 hidden_(false), |
| 193 in_enable_area_(info.in_enable_area()) { | 193 in_enable_area_(info.in_enable_area()) { |
| 194 #if defined(OS_WIN) | 194 #if defined(OS_WIN) |
| 195 views::WidgetWin* popup = new views::WidgetWin; | 195 views::WidgetWin* popup = new views::WidgetWin; |
| 196 popup_ = popup; | 196 popup_ = popup; |
| 197 popup->set_window_style(WS_POPUP); | 197 popup->set_window_style(WS_POPUP); |
| 198 popup->set_window_ex_style(WS_EX_LAYERED | WS_EX_TOOLWINDOW | | 198 popup->set_window_ex_style(WS_EX_LAYERED | WS_EX_TOOLWINDOW | |
| 199 WS_EX_TOPMOST); | 199 WS_EX_TOPMOST); |
| 200 popup->SetOpacity(0x00); | 200 popup->SetOpacity(0x00); |
| 201 popup->Init(NULL, info.GetPopupRect(), false); | 201 popup->Init(NULL, info.GetPopupRect()); |
| 202 popup->SetContentsView(new DockView(info.type())); | 202 popup->SetContentsView(new DockView(info.type())); |
| 203 if (info.in_enable_area()) | 203 if (info.in_enable_area()) |
| 204 animation_.Reset(1); | 204 animation_.Reset(1); |
| 205 else | 205 else |
| 206 animation_.Show(); | 206 animation_.Show(); |
| 207 popup->SetWindowPos(HWND_TOP, 0, 0, 0, 0, | 207 popup->SetWindowPos(HWND_TOP, 0, 0, 0, 0, |
| 208 SWP_NOSIZE | SWP_NOACTIVATE | SWP_NOMOVE | SWP_SHOWWINDOW); | 208 SWP_NOSIZE | SWP_NOACTIVATE | SWP_NOMOVE | SWP_SHOWWINDOW); |
| 209 #else | 209 #else |
| 210 NOTIMPLEMENTED(); | 210 NOTIMPLEMENTED(); |
| 211 #endif | 211 #endif |
| (...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1233 | 1233 |
| 1234 // The previous call made the window appear on top of the dragged window, | 1234 // The previous call made the window appear on top of the dragged window, |
| 1235 // move the dragged window to the front. | 1235 // move the dragged window to the front. |
| 1236 SetWindowPos(view_->GetWidget()->GetNativeView(), HWND_TOP, 0, 0, 0, 0, | 1236 SetWindowPos(view_->GetWidget()->GetNativeView(), HWND_TOP, 0, 0, 0, 0, |
| 1237 SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE); | 1237 SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE); |
| 1238 #else | 1238 #else |
| 1239 NOTIMPLEMENTED(); | 1239 NOTIMPLEMENTED(); |
| 1240 #endif | 1240 #endif |
| 1241 } | 1241 } |
| 1242 } | 1242 } |
| OLD | NEW |