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

Side by Side Diff: ui/views/widget/native_widget_win.h

Issue 10828395: Move more message handlers from NativeWidgetWin to HWNDMessageHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « ui/views/widget/hwnd_message_handler.cc ('k') | ui/views/widget/native_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) 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 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlapp.h> 9 #include <atlapp.h>
10 #include <atlcrack.h> 10 #include <atlcrack.h>
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 void LockUpdates(bool force); 535 void LockUpdates(bool force);
536 void UnlockUpdates(bool force); 536 void UnlockUpdates(bool force);
537 537
538 // Determines whether the delegate expects the client size or the window size. 538 // Determines whether the delegate expects the client size or the window size.
539 bool WidgetSizeIsClientSize() const; 539 bool WidgetSizeIsClientSize() const;
540 540
541 // Responds to the client area changing size, either at window creation time 541 // Responds to the client area changing size, either at window creation time
542 // or subsequently. 542 // or subsequently.
543 void ClientAreaSizeChanged(); 543 void ClientAreaSizeChanged();
544 544
545 // Resets the window region for the current widget bounds if necessary.
546 // If |force| is true, the window region is reset to NULL even for native
547 // frame windows.
548 void ResetWindowRegion(bool force);
549
550 // When removing the standard frame, tells the DWM how much glass we want on 545 // When removing the standard frame, tells the DWM how much glass we want on
551 // the edges. Currently hardcoded to 10px on all sides. 546 // the edges. Currently hardcoded to 10px on all sides.
552 void UpdateDWMFrame(); 547 void UpdateDWMFrame();
553 548
554 // Calls DefWindowProc, safely wrapping the call in a ScopedRedrawLock to 549 // Calls DefWindowProc, safely wrapping the call in a ScopedRedrawLock to
555 // prevent frame flicker. DefWindowProc handling can otherwise render the 550 // prevent frame flicker. DefWindowProc handling can otherwise render the
556 // classic-look window title bar directly. 551 // classic-look window title bar directly.
557 LRESULT DefWindowProcWithRedrawLock(UINT message, 552 LRESULT DefWindowProcWithRedrawLock(UINT message,
558 WPARAM w_param, 553 WPARAM w_param,
559 LPARAM l_param); 554 LPARAM l_param);
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 TouchIDs touch_ids_; 708 TouchIDs touch_ids_;
714 709
715 scoped_ptr<HWNDMessageHandler> message_handler_; 710 scoped_ptr<HWNDMessageHandler> message_handler_;
716 711
717 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); 712 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin);
718 }; 713 };
719 714
720 } // namespace views 715 } // namespace views
721 716
722 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ 717 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
OLDNEW
« no previous file with comments | « ui/views/widget/hwnd_message_handler.cc ('k') | ui/views/widget/native_widget_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698