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

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

Issue 11416345: Fix for tab re-attach on windows desktop aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/tabs/dock_info.h" 5 #include "chrome/browser/ui/tabs/dock_info.h"
6 6
7 #include "base/win/scoped_gdi_object.h" 7 #include "base/win/scoped_gdi_object.h"
8 #include "base/win/windows_version.h" 8 #include "base/win/windows_version.h"
9 #include "chrome/browser/ui/ash/tabs/dock_info_ash.h" 9 #include "chrome/browser/ui/ash/tabs/dock_info_ash.h"
10 #include "chrome/browser/ui/browser_list.h" 10 #include "chrome/browser/ui/browser_list.h"
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 gfx::Point screen_loc_; 299 gfx::Point screen_loc_;
300 300
301 // The resulting DockInfo. 301 // The resulting DockInfo.
302 DockInfo result_; 302 DockInfo result_;
303 303
304 DISALLOW_COPY_AND_ASSIGN(DockToWindowFinder); 304 DISALLOW_COPY_AND_ASSIGN(DockToWindowFinder);
305 }; 305 };
306 306
307 std::set<HWND> RemapIgnoreSet(const std::set<gfx::NativeView>& ignore) { 307 std::set<HWND> RemapIgnoreSet(const std::set<gfx::NativeView>& ignore) {
308 #if defined(USE_AURA) 308 #if defined(USE_AURA)
309 // TODO(scottmg): Figure out how to reimplement |ignore| on Aura. The ignore 309 std::set<HWND> hwnd_set;
310 // in BaseWindowFinder is via EnumThreadWindows, but the NativeViews won't 310 std::set<gfx::NativeView>::const_iterator it = ignore.begin();
311 // be enumerated on Aura. 311 for (; it != ignore.end(); ++it) {
312 return std::set<HWND>(); 312 HWND w = (*it)->GetRootWindow()->GetAcceleratedWidget();
313 if (w)
314 hwnd_set.insert(w);
315 }
316 return hwnd_set;
313 #else 317 #else
314 // NativeViews are already HWNDs on non-Aura Windows. 318 // NativeViews are already HWNDs on non-Aura Windows.
315 return ignore; 319 return ignore;
316 #endif 320 #endif
317 } 321 }
318 322
319 } // namespace 323 } // namespace
320 324
321 // DockInfo ------------------------------------------------------------------- 325 // DockInfo -------------------------------------------------------------------
322 326
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 SetWindowPos(window(), HWND_TOP, bounds.x(), bounds.y(), bounds.width(), 401 SetWindowPos(window(), HWND_TOP, bounds.x(), bounds.y(), bounds.width(),
398 bounds.height(), SWP_NOACTIVATE | SWP_NOOWNERZORDER); 402 bounds.height(), SWP_NOACTIVATE | SWP_NOOWNERZORDER);
399 } 403 }
400 404
401 // static 405 // static
402 int DockInfo::GetHotSpotDeltaY() { 406 int DockInfo::GetHotSpotDeltaY() {
403 return Tab::GetMinimumUnselectedSize().height() - 1; 407 return Tab::GetMinimumUnselectedSize().height() - 1;
404 } 408 }
405 409
406 #endif // !USE_AURA 410 #endif // !USE_AURA
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698