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

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

Issue 9254046: Custom frame UI for platform apps on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rearchitect to use NonClientFrameView Created 8 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) 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 #pragma once 7 #pragma once
8 8
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlapp.h> 10 #include <atlapp.h>
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 487
488 // Lock or unlock the window from being able to redraw itself in response to 488 // Lock or unlock the window from being able to redraw itself in response to
489 // updates to its invalid region. 489 // updates to its invalid region.
490 class ScopedRedrawLock; 490 class ScopedRedrawLock;
491 void LockUpdates(); 491 void LockUpdates();
492 void UnlockUpdates(); 492 void UnlockUpdates();
493 493
494 // Determines whether the delegate expects the client size or the window size. 494 // Determines whether the delegate expects the client size or the window size.
495 bool WidgetSizeIsClientSize() const; 495 bool WidgetSizeIsClientSize() const;
496 496
497 // True if client size == window size according to the NonClientFrameView.
498 virtual bool ShouldRemoveStandardFrame() const;
499
497 // Responds to the client area changing size, either at window creation time 500 // Responds to the client area changing size, either at window creation time
498 // or subsequently. 501 // or subsequently.
499 void ClientAreaSizeChanged(); 502 void ClientAreaSizeChanged();
500 503
501 // Resets the window region for the current widget bounds if necessary. 504 // Resets the window region for the current widget bounds if necessary.
502 // If |force| is true, the window region is reset to NULL even for native 505 // If |force| is true, the window region is reset to NULL even for native
503 // frame windows. 506 // frame windows.
504 void ResetWindowRegion(bool force); 507 void ResetWindowRegion(bool force);
505 508
506 // Calls DefWindowProc, safely wrapping the call in a ScopedRedrawLock to 509 // Calls DefWindowProc, safely wrapping the call in a ScopedRedrawLock to
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 // rather than asking the Widget for the non_client_view so that we know at 655 // rather than asking the Widget for the non_client_view so that we know at
653 // Init time, before the Widget has created the NonClientView. 656 // Init time, before the Widget has created the NonClientView.
654 bool has_non_client_view_; 657 bool has_non_client_view_;
655 658
656 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); 659 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin);
657 }; 660 };
658 661
659 } // namespace views 662 } // namespace views
660 663
661 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ 664 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698