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

Side by Side Diff: chrome/views/container_win.cc

Issue 11540: Fixes bug where tooltips would get stuck. This was happening because... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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 | « chrome/views/aero_tooltip_manager.cc ('k') | chrome/views/tooltip_manager.h » ('j') | 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) 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/views/container_win.h" 5 #include "chrome/views/container_win.h"
6 6
7 #include "base/gfx/native_theme.h" 7 #include "base/gfx/native_theme.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/win_util.h" 9 #include "base/win_util.h"
10 #include "chrome/app/chrome_dll_resource.h" 10 #include "chrome/app/chrome_dll_resource.h"
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 UINT message) { 525 UINT message) {
526 SetMsgHandled(FALSE); 526 SetMsgHandled(FALSE);
527 return MA_ACTIVATE; 527 return MA_ACTIVATE;
528 } 528 }
529 529
530 void ContainerWin::OnMouseMove(UINT flags, const CPoint& point) { 530 void ContainerWin::OnMouseMove(UINT flags, const CPoint& point) {
531 ProcessMouseMoved(point, flags, false); 531 ProcessMouseMoved(point, flags, false);
532 } 532 }
533 533
534 LRESULT ContainerWin::OnMouseLeave(UINT uMsg, WPARAM w_param, LPARAM l_param) { 534 LRESULT ContainerWin::OnMouseLeave(UINT uMsg, WPARAM w_param, LPARAM l_param) {
535 tooltip_manager_->OnMouseLeave();
535 ProcessMouseExited(); 536 ProcessMouseExited();
536 return 0; 537 return 0;
537 } 538 }
538 539
539 LRESULT ContainerWin::OnMouseWheel(UINT flags, short distance, 540 LRESULT ContainerWin::OnMouseWheel(UINT flags, short distance,
540 const CPoint& point) { 541 const CPoint& point) {
541 MouseWheelEvent e(distance, 542 MouseWheelEvent e(distance,
542 point.x, 543 point.x,
543 point.y, 544 point.y,
544 Event::ConvertWindowsFlags(flags)); 545 Event::ConvertWindowsFlags(flags));
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 result = DefWindowProc(window, message, w_param, l_param); 919 result = DefWindowProc(window, message, w_param, l_param);
919 if (message == WM_NCDESTROY) { 920 if (message == WM_NCDESTROY) {
920 vc->hwnd_ = NULL; 921 vc->hwnd_ = NULL;
921 vc->OnFinalMessage(window); 922 vc->OnFinalMessage(window);
922 } 923 }
923 return result; 924 return result;
924 } 925 }
925 926
926 } // namespace views 927 } // namespace views
927 928
OLDNEW
« no previous file with comments | « chrome/views/aero_tooltip_manager.cc ('k') | chrome/views/tooltip_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698