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

Side by Side Diff: chrome/views/widget_win.h

Issue 40124: Revert r9953 since it caused regressions like: (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Created 11 years, 9 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
« no previous file with comments | « chrome/views/view.cc ('k') | chrome/views/widget_win.cc » ('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 #ifndef CHROME_VIEWS_WIDGET_WIN_H_ 5 #ifndef CHROME_VIEWS_WIDGET_WIN_H_
6 #define CHROME_VIEWS_WIDGET_WIN_H_ 6 #define CHROME_VIEWS_WIDGET_WIN_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlcrack.h> 9 #include <atlcrack.h>
10 10
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 virtual void OnFinalMessage(HWND window); 479 virtual void OnFinalMessage(HWND window);
480 480
481 // Start tracking all mouse events so that this window gets sent mouse leave 481 // Start tracking all mouse events so that this window gets sent mouse leave
482 // messages too. |is_nonclient| is true when we should track WM_NCMOUSELEAVE 482 // messages too. |is_nonclient| is true when we should track WM_NCMOUSELEAVE
483 // messages instead of WM_MOUSELEAVE ones. 483 // messages instead of WM_MOUSELEAVE ones.
484 void TrackMouseEvents(DWORD mouse_tracking_flags); 484 void TrackMouseEvents(DWORD mouse_tracking_flags);
485 485
486 // Actually handle mouse events. These functions are called by subclasses who 486 // Actually handle mouse events. These functions are called by subclasses who
487 // override the message handlers above to do the actual real work of handling 487 // override the message handlers above to do the actual real work of handling
488 // the event in the View system. 488 // the event in the View system.
489 bool ProcessMousePressed(const CPoint& point, 489 bool ProcessMousePressed(const CPoint& point, UINT flags, bool dbl_click);
490 UINT flags,
491 bool dbl_click,
492 bool non_client);
493 void ProcessMouseDragged(const CPoint& point, UINT flags); 490 void ProcessMouseDragged(const CPoint& point, UINT flags);
494 void ProcessMouseReleased(const CPoint& point, UINT flags); 491 void ProcessMouseReleased(const CPoint& point, UINT flags);
495 void ProcessMouseMoved(const CPoint& point, UINT flags, bool is_nonclient); 492 void ProcessMouseMoved(const CPoint& point, UINT flags, bool is_nonclient);
496 void ProcessMouseExited(); 493 void ProcessMouseExited();
497 494
498 // Makes sure the window still fits on screen after a settings change message 495 // Makes sure the window still fits on screen after a settings change message
499 // from the OS, e.g. a screen resolution change. 496 // from the OS, e.g. a screen resolution change.
500 virtual void AdjustWindowToFitScreenSize(); 497 virtual void AdjustWindowToFitScreenSize();
501 498
502 // Handles re-laying out content in response to a window size change. 499 // Handles re-laying out content in response to a window size change.
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 CComPtr<IAccessible> accessibility_root_; 617 CComPtr<IAccessible> accessibility_root_;
621 618
622 // Our hwnd. 619 // Our hwnd.
623 HWND hwnd_; 620 HWND hwnd_;
624 }; 621 };
625 622
626 } // namespace views 623 } // namespace views
627 624
628 #endif // #ifndef CHROME_VIEWS_WIDGET_WIN_H_ 625 #endif // #ifndef CHROME_VIEWS_WIDGET_WIN_H_
629 626
OLDNEW
« no previous file with comments | « chrome/views/view.cc ('k') | chrome/views/widget_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698