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

Unified Diff: chrome/views/controls/button/native_button_wrapper.h

Issue 45042: Fix for native button focus bug (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 | « chrome/views/controls/button/native_button_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/controls/button/native_button_wrapper.h
===================================================================
--- chrome/views/controls/button/native_button_wrapper.h (revision 12376)
+++ chrome/views/controls/button/native_button_wrapper.h (working copy)
@@ -31,13 +31,16 @@
// Updates the native button's checked state from the state stored in its
// associated NativeCheckbox. Valid only for checkboxes and radio buttons.
virtual void UpdateChecked() {}
-
+
// Shows the pushed state for the button if |pushed| is true.
virtual void SetPushed(bool pushed) {};
- // Retrieves the views::View that hosts the native control.
+ // Retrieves the views::View that hosts the native control.
virtual View* GetView() = 0;
+ // Sets the focus to the button.
+ virtual void SetFocus() = 0;
+
// Return the width of the button. Used for fixed size buttons (checkboxes and
// radio buttons) only.
static int GetFixedWidth();
« no previous file with comments | « chrome/views/controls/button/native_button_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698