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

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

Issue 21268: Solved 2 bugs which caused Chrome to maximize itself when... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 #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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 virtual void OnFinalMessage(HWND window); 456 virtual void OnFinalMessage(HWND window);
457 457
458 // Start tracking all mouse events so that this window gets sent mouse leave 458 // Start tracking all mouse events so that this window gets sent mouse leave
459 // messages too. |is_nonclient| is true when we should track WM_NCMOUSELEAVE 459 // messages too. |is_nonclient| is true when we should track WM_NCMOUSELEAVE
460 // messages instead of WM_MOUSELEAVE ones. 460 // messages instead of WM_MOUSELEAVE ones.
461 void TrackMouseEvents(DWORD mouse_tracking_flags); 461 void TrackMouseEvents(DWORD mouse_tracking_flags);
462 462
463 // Actually handle mouse events. These functions are called by subclasses who 463 // Actually handle mouse events. These functions are called by subclasses who
464 // override the message handlers above to do the actual real work of handling 464 // override the message handlers above to do the actual real work of handling
465 // the event in the View system. 465 // the event in the View system.
466 bool ProcessMousePressed(const CPoint& point, UINT flags, bool dbl_click); 466 bool ProcessMousePressed(const CPoint& point,
467 UINT flags,
468 bool dbl_click,
469 bool non_client);
467 void ProcessMouseDragged(const CPoint& point, UINT flags); 470 void ProcessMouseDragged(const CPoint& point, UINT flags);
468 void ProcessMouseReleased(const CPoint& point, UINT flags); 471 void ProcessMouseReleased(const CPoint& point, UINT flags);
469 void ProcessMouseMoved(const CPoint& point, UINT flags, bool is_nonclient); 472 void ProcessMouseMoved(const CPoint& point, UINT flags, bool is_nonclient);
470 void ProcessMouseExited(); 473 void ProcessMouseExited();
471 474
472 // Makes sure the window still fits on screen after a settings change message 475 // Makes sure the window still fits on screen after a settings change message
473 // from the OS, e.g. a screen resolution change. 476 // from the OS, e.g. a screen resolution change.
474 virtual void AdjustWindowToFitScreenSize(); 477 virtual void AdjustWindowToFitScreenSize();
475 478
476 // Handles re-laying out content in response to a window size change. 479 // Handles re-laying out content in response to a window size change.
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 CComPtr<IAccessible> accessibility_root_; 597 CComPtr<IAccessible> accessibility_root_;
595 598
596 // Our hwnd. 599 // Our hwnd.
597 HWND hwnd_; 600 HWND hwnd_;
598 }; 601 };
599 602
600 } // namespace views 603 } // namespace views
601 604
602 #endif // #ifndef CHROME_VIEWS_WIDGET_WIN_H_ 605 #endif // #ifndef CHROME_VIEWS_WIDGET_WIN_H_
603 606
OLDNEW
« chrome/views/view.cc ('K') | « 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