| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/views/tabs/tab_drag_controller.h" | 5 #include "chrome/browser/ui/views/tabs/tab_drag_controller.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 1862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1873 int delta = (*drag_bounds)[0].x(); | 1873 int delta = (*drag_bounds)[0].x(); |
| 1874 for (size_t i = 0; i < drag_bounds->size(); ++i) | 1874 for (size_t i = 0; i < drag_bounds->size(); ++i) |
| 1875 (*drag_bounds)[i].Offset(-delta, 0); | 1875 (*drag_bounds)[i].Offset(-delta, 0); |
| 1876 break; | 1876 break; |
| 1877 } | 1877 } |
| 1878 | 1878 |
| 1879 default: | 1879 default: |
| 1880 break; // Nothing to do for DETACH_ABOVE_OR_BELOW. | 1880 break; // Nothing to do for DETACH_ABOVE_OR_BELOW. |
| 1881 } | 1881 } |
| 1882 | 1882 |
| 1883 SetTrackedByWorkspace(browser->window()->GetNativeHandle(), false); | 1883 SetTrackedByWorkspace(browser->window()->GetNativeWindow(), false); |
| 1884 browser->window()->SetBounds(new_bounds); | 1884 browser->window()->SetBounds(new_bounds); |
| 1885 return browser; | 1885 return browser; |
| 1886 } | 1886 } |
| OLD | NEW |