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

Unified Diff: views/window/dialog_client_view.cc

Issue 131027: Hook up "clear browsing data" dialog. It looks like ass right now. The intent... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/views.gyp ('k') | views/window/window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/window/dialog_client_view.cc
===================================================================
--- views/window/dialog_client_view.cc (revision 18685)
+++ views/window/dialog_client_view.cc (working copy)
@@ -258,10 +258,14 @@
}
void DialogClientView::WindowClosing() {
+#if !defined(TOOLKIT_VIEWS)
FocusManager* focus_manager = GetFocusManager();
DCHECK(focus_manager);
if (focus_manager)
focus_manager->RemoveFocusChangeListener(this);
+#else
+ NOTIMPLEMENTED();
+#endif
ClientView::WindowClosing();
}
@@ -304,12 +308,16 @@
ShowDialogButtons();
ClientView::ViewHierarchyChanged(is_add, parent, child);
+#if !defined(TOOLKIT_VIEWS)
FocusManager* focus_manager = GetFocusManager();
// Listen for focus change events so we can update the default button.
DCHECK(focus_manager); // bug #1291225: crash reports seem to indicate it
// can be NULL.
if (focus_manager)
focus_manager->AddFocusChangeListener(this);
+#else
+ NOTIMPLEMENTED();
+#endif
// The "extra view" must be created and installed after the contents view
// has been inserted into the view hierarchy.
« no previous file with comments | « views/views.gyp ('k') | views/window/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698