diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-16 17:21:23 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-16 17:21:23 +0000 |
commit | 2f2b57b7e32777e656d4dbbbc04cd914d5b94472 (patch) | |
tree | 9e925e8063d39c06c4edb068d2f3a371ff395589 /views/controls/tabbed_pane | |
parent | 4e8655deaccc49465a6c18055887d1e0e2501a55 (diff) | |
download | chromium_src-2f2b57b7e32777e656d4dbbbc04cd914d5b94472.zip chromium_src-2f2b57b7e32777e656d4dbbbc04cd914d5b94472.tar.gz chromium_src-2f2b57b7e32777e656d4dbbbc04cd914d5b94472.tar.bz2 |
Re-land:
Move private NativeWidget methods to new internal interface
NativeWidgetPrivate.
This should make it harder to abuse accidentally.
BUG=72040
TEST=none
Review URL: http://codereview.chromium.org/7170019
Review URL: http://codereview.chromium.org/7189012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89357 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/tabbed_pane')
-rw-r--r-- | views/controls/tabbed_pane/native_tabbed_pane_gtk.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/views/controls/tabbed_pane/native_tabbed_pane_gtk.cc b/views/controls/tabbed_pane/native_tabbed_pane_gtk.cc index 360ad6e..ac3ff19 100644 --- a/views/controls/tabbed_pane/native_tabbed_pane_gtk.cc +++ b/views/controls/tabbed_pane/native_tabbed_pane_gtk.cc @@ -77,8 +77,7 @@ View* NativeTabbedPaneGtk::RemoveTabAtIndex(int index) { GtkWidget* page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(native_view()), index); - Widget* widget = - NativeWidget::GetNativeWidgetForNativeView(page)->GetWidget(); + Widget* widget = Widget::GetWidgetForNativeView(page); // detach the content view from widget so that we can delete widget // without destroying the content view. @@ -197,8 +196,7 @@ Widget* NativeTabbedPaneGtk::GetWidgetAt(int index) { DCHECK(index <= GetTabCount()); GtkWidget* page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(native_view()), index); - Widget* widget = - NativeWidget::GetNativeWidgetForNativeView(page)->GetWidget(); + Widget* widget = Widget::GetWidgetForNativeView(page); DCHECK(widget); return widget; } |