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

Unified Diff: views/controls/button/native_button_gtk.cc

Issue 114059: Refactors HWNDView, NativeViewHostGtk and NativeViewHost so that they match t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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/common/temp_scaffolding_stubs.h ('k') | views/controls/button/native_button_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/button/native_button_gtk.cc
===================================================================
--- views/controls/button/native_button_gtk.cc (revision 17161)
+++ views/controls/button/native_button_gtk.cc (working copy)
@@ -11,6 +11,7 @@
#include "views/controls/button/checkbox.h"
#include "views/controls/button/native_button.h"
#include "views/controls/button/radio_button.h"
+#include "views/controls/native/native_view_host_gtk.h"
#include "views/widget/widget.h"
namespace views {
@@ -21,7 +22,7 @@
// Associates the actual GtkWidget with the native_button so the native_button
// is the one considered as having the focus (not the wrapper) when the
// GtkWidget is focused directly (with a click for example).
- SetAssociatedFocusView(native_button);
+ set_focus_view(native_button);
}
NativeButtonGtk::~NativeButtonGtk() {
@@ -90,7 +91,7 @@
// static
void NativeButtonGtk::CallClicked(GtkButton* widget) {
- View* view = GetViewForNative(GTK_WIDGET(widget));
+ View* view = NativeViewHostGtk::GetViewForNative(GTK_WIDGET(widget));
if (view)
static_cast<NativeButtonGtk*>(view)->OnClicked();
}
« no previous file with comments | « chrome/common/temp_scaffolding_stubs.h ('k') | views/controls/button/native_button_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698