diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/widget/widget_gtk.cc | 9 | ||||
-rw-r--r-- | views/widget/widget_gtk.h | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc index ee3e197..5bf54d6 100644 --- a/views/widget/widget_gtk.cc +++ b/views/widget/widget_gtk.cc @@ -51,6 +51,7 @@ class WidgetGtk::DropObserver : public MessageLoopForUI::Observer { }; static const char* kWidgetKey = "__VIEWS_WIDGET__"; +static const wchar_t* kWidgetWideKey = L"__VIEWS_WIDGET__"; // Returns the position of a widget on screen. static void GetWidgetPositionOnScreen(GtkWidget* widget, int* x, int *y) { @@ -531,11 +532,6 @@ ThemeProvider* WidgetGtk::GetDefaultThemeProvider() const { return default_theme_provider_.get(); } -FocusManager* WidgetGtk::GetFocusManager() { - NOTIMPLEMENTED(); - return NULL; -} - //////////////////////////////////////////////////////////////////////////////// // WidgetGtk, MessageLoopForUI::Observer implementation: @@ -644,7 +640,7 @@ void WidgetGtk::CreateGtkWidget(GtkWidget* parent, const gfx::Rect& bounds) { gtk_widget_realize(widget_); // Associate this object with the widget. - SetNativeWindowProperty(kWidgetKey, this); + SetNativeWindowProperty(kWidgetWideKey, this); } void WidgetGtk::OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation) { @@ -1298,3 +1294,4 @@ Widget* Widget::GetWidgetFromNativeWindow(gfx::NativeWindow native_window) { } } // namespace views + diff --git a/views/widget/widget_gtk.h b/views/widget/widget_gtk.h index 57b387c..0323eb3 100644 --- a/views/widget/widget_gtk.h +++ b/views/widget/widget_gtk.h @@ -167,6 +167,10 @@ class WidgetGtk // Gets the WidgetGtk in the userdata section of the widget. static WidgetGtk* GetViewForNative(GtkWidget* widget); + // Gets the WindowGtk in the userdata section of the widget. + // TODO(beng): move to WindowGtk + static WindowGtk* GetWindowForNative(GtkWidget* widget); + // Sets the drop target to NULL. This is invoked by DropTargetGTK when the // drop is done. void ResetDropTarget(); |