summaryrefslogtreecommitdiffstats
path: root/views/controls/tabbed_pane
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-03 03:09:56 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-03 03:09:56 +0000
commit5795629c093248519fa3953b8f5526cf8328e123 (patch)
tree04565a914cad2a06f216ed597fa12ecf6b3ad98c /views/controls/tabbed_pane
parent70de26018337a9764c3d290162916c54c6e47a18 (diff)
downloadchromium_src-5795629c093248519fa3953b8f5526cf8328e123.zip
chromium_src-5795629c093248519fa3953b8f5526cf8328e123.tar.gz
chromium_src-5795629c093248519fa3953b8f5526cf8328e123.tar.bz2
Get rid of most of the old method uses from WidgetGtk. I think this is safe.
Continuation of: Land the new functions added by 76483 - but do not use them anywhere outside of their tests. This will help me incrementally re-deploy these functions and identify what is causing the buildbot test redness. BUG=72040 TEST=none TBR=sky (all code originally reviewed here: http://codereview.chromium.org/6598069/ ) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76698 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/tabbed_pane')
-rw-r--r--views/controls/tabbed_pane/native_tabbed_pane_gtk.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/views/controls/tabbed_pane/native_tabbed_pane_gtk.cc b/views/controls/tabbed_pane/native_tabbed_pane_gtk.cc
index 02d5fe6..50b62c6 100644
--- a/views/controls/tabbed_pane/native_tabbed_pane_gtk.cc
+++ b/views/controls/tabbed_pane/native_tabbed_pane_gtk.cc
@@ -64,7 +64,8 @@ View* NativeTabbedPaneGtk::RemoveTabAtIndex(int index) {
GtkWidget* page =
gtk_notebook_get_nth_page(GTK_NOTEBOOK(native_view()), index);
- WidgetGtk* widget = WidgetGtk::GetViewForNative(page);
+ WidgetGtk* widget =
+ static_cast<WidgetGtk*>(NativeWidget::GetNativeWidgetForNativeView(page));
// detach the content view from widget so that we can delete widget
// without destroying the content view.
@@ -194,7 +195,8 @@ WidgetGtk* NativeTabbedPaneGtk::GetWidgetAt(int index) {
DCHECK(index <= GetTabCount());
GtkWidget* page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(native_view()),
index);
- WidgetGtk* widget = WidgetGtk::GetViewForNative(page);
+ WidgetGtk* widget =
+ static_cast<WidgetGtk*>(NativeWidget::GetNativeWidgetForNativeView(page));
DCHECK(widget);
return widget;
}