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

Unified Diff: ui/aura_shell/toplevel_frame_view.cc

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/aura_shell/toplevel_frame_view.cc
===================================================================
--- ui/aura_shell/toplevel_frame_view.cc (revision 113407)
+++ ui/aura_shell/toplevel_frame_view.cc (working copy)
@@ -161,6 +161,11 @@
return HTNOWHERE;
}
+ // Updates the enabled state of the close button.
+ void EnableClose(bool enable) {
+ close_button_->SetEnabled(enable);
+ }
+
// Overridden from FrameComponent:
virtual bool IgnoreEventsForPoint(const gfx::Point& point) OVERRIDE {
gfx::Point translated_point(point);
@@ -396,6 +401,10 @@
// Nothing.
}
+void ToplevelFrameView::EnableClose(bool enable) {
+ caption_->EnableClose(enable);
+}
+
void ToplevelFrameView::ResetWindowControls() {
NOTIMPLEMENTED();
}

Powered by Google App Engine
This is Rietveld 408576698