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

Unified Diff: ui/views/window/non_client_view.h

Issue 8869005: Revert EnableClose() removal and related crash fixes. I don't understand the crashes here, and th... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/window/non_client_view.h
===================================================================
--- ui/views/window/non_client_view.h (revision 113407)
+++ ui/views/window/non_client_view.h (working copy)
@@ -53,6 +53,7 @@
virtual int NonClientHitTest(const gfx::Point& point) = 0;
virtual void GetWindowMask(const gfx::Size& size,
gfx::Path* window_mask) = 0;
+ virtual void EnableClose(bool enable) = 0;
virtual void ResetWindowControls() = 0;
virtual void UpdateWindowIcon() = 0;
@@ -174,6 +175,10 @@
// size. This is used to create the non-rectangular window shape.
void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask);
+ // Toggles the enable state for the Close button (and the Close menu item in
+ // the system menu).
+ void EnableClose(bool enable);
+
// Tells the window controls as rendered by the NonClientView to reset
// themselves to a normal state. This happens in situations where the
// containing window does not receive a normal sequences of messages that

Powered by Google App Engine
This is Rietveld 408576698