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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_drag_controller.cc

Issue 10538039: Renamed BrowserWindow::GetNativeHandle() to GetNativeWindow() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update copyrights Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698