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

Side by Side Diff: chrome/browser/views/tabs/tab_strip.cc

Issue 140064: Revert :... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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) 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/tab_strip.h" 5 #include "chrome/browser/views/tabs/tab_strip.h"
6 6
7 #include "app/drag_drop_types.h" 7 #include "app/drag_drop_types.h"
8 #include "app/gfx/canvas.h" 8 #include "app/gfx/canvas.h"
9 #include "app/gfx/path.h" 9 #include "app/gfx/path.h"
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
(...skipping 1364 matching lines...) Expand 10 before | Expand all | Expand 10 after
1375 arrow_window = new views::WidgetWin; 1375 arrow_window = new views::WidgetWin;
1376 arrow_window->set_window_style(WS_POPUP); 1376 arrow_window->set_window_style(WS_POPUP);
1377 arrow_window->set_window_ex_style(WS_EX_TOPMOST | WS_EX_NOACTIVATE | 1377 arrow_window->set_window_ex_style(WS_EX_TOPMOST | WS_EX_NOACTIVATE |
1378 WS_EX_LAYERED | WS_EX_TRANSPARENT); 1378 WS_EX_LAYERED | WS_EX_TRANSPARENT);
1379 1379
1380 arrow_view = new views::ImageView; 1380 arrow_view = new views::ImageView;
1381 arrow_view->SetImage(GetDropArrowImage(point_down)); 1381 arrow_view->SetImage(GetDropArrowImage(point_down));
1382 1382
1383 arrow_window->Init( 1383 arrow_window->Init(
1384 NULL, 1384 NULL,
1385 gfx::Rect(0, 0, drop_indicator_width, drop_indicator_height)); 1385 gfx::Rect(0, 0, drop_indicator_width, drop_indicator_height),
1386 true);
1386 arrow_window->SetContentsView(arrow_view); 1387 arrow_window->SetContentsView(arrow_view);
1387 #else 1388 #else
1388 NOTIMPLEMENTED(); 1389 NOTIMPLEMENTED();
1389 #endif 1390 #endif
1390 } 1391 }
1391 1392
1392 TabStrip::DropInfo::~DropInfo() { 1393 TabStrip::DropInfo::~DropInfo() {
1393 // Close eventually deletes the window, which deletes arrow_view too. 1394 // Close eventually deletes the window, which deletes arrow_view too.
1394 #if defined(OS_WIN) 1395 #if defined(OS_WIN)
1395 arrow_window->Close(); 1396 arrow_window->Close();
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1571 &TabStrip::ResizeLayoutTabs), 1572 &TabStrip::ResizeLayoutTabs),
1572 kResizeTabsTimeMs); 1573 kResizeTabsTimeMs);
1573 } 1574 }
1574 } else { 1575 } else {
1575 // Mouse moved quickly out of the tab strip and then into it again, so 1576 // Mouse moved quickly out of the tab strip and then into it again, so
1576 // cancel the timer so that the strip doesn't move when the mouse moves 1577 // cancel the timer so that the strip doesn't move when the mouse moves
1577 // back over it. 1578 // back over it.
1578 resize_layout_factory_.RevokeAll(); 1579 resize_layout_factory_.RevokeAll();
1579 } 1580 }
1580 } 1581 }
OLDNEW
« no previous file with comments | « chrome/browser/views/tabs/native_view_photobooth_win.cc ('k') | views/controls/menu/chrome_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698