In dialogs, when the focus moves to a button, that button should become the default button.
When the focus is not a button, then the default button should be the one the delegate specifies.
BUG=4132
TEST=Open the option dialog. OK should be the default and focused button. Move the focus around by pressing tab. When a button is selected, it should be the default button.
Review URL: http://codereview.chromium.org/10230
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5056 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/views/view.h b/chrome/views/view.h
index 0a6ad31..d8bf716 100644
--- a/chrome/views/view.h
+++ b/chrome/views/view.h
@@ -504,6 +504,9 @@
// method several times.
virtual void AddAccelerator(const Accelerator& accelerator);
+ // Removes the specified accelerator for this view.
+ virtual void RemoveAccelerator(const Accelerator& accelerator);
+
// Removes all the keyboard accelerators for this view.
virtual void ResetAccelerators();