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

Side by Side Diff: chrome/browser/ui/gtk/tab_contents_container_gtk.cc

Issue 10696158: Rename WasRestored to WasShown across all uses. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Bring to ToT to commit Created 8 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/gtk/tab_contents_container_gtk.h" 5 #include "chrome/browser/ui/gtk/tab_contents_container_gtk.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "chrome/browser/ui/gtk/status_bubble_gtk.h" 10 #include "chrome/browser/ui/gtk/status_bubble_gtk.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 // We need to make sure that we are below the findbar. 140 // We need to make sure that we are below the findbar.
141 // Sometimes the content native view will be null. 141 // Sometimes the content native view will be null.
142 if (tab->web_contents()->GetContentNativeView()) { 142 if (tab->web_contents()->GetContentNativeView()) {
143 GdkWindow* content_gdk_window = gtk_widget_get_window( 143 GdkWindow* content_gdk_window = gtk_widget_get_window(
144 tab->web_contents()->GetContentNativeView()); 144 tab->web_contents()->GetContentNativeView());
145 if (content_gdk_window) 145 if (content_gdk_window)
146 gdk_window_lower(content_gdk_window); 146 gdk_window_lower(content_gdk_window);
147 } 147 }
148 148
149 tab->web_contents()->WasRestored(); 149 tab->web_contents()->WasShown();
150 } 150 }
151 151
152 void TabContentsContainerGtk::HideTab(TabContents* tab) { 152 void TabContentsContainerGtk::HideTab(TabContents* tab) {
153 if (!tab) 153 if (!tab)
154 return; 154 return;
155 155
156 gfx::NativeView widget = tab->web_contents()->GetNativeView(); 156 gfx::NativeView widget = tab->web_contents()->GetNativeView();
157 if (widget) 157 if (widget)
158 gtk_widget_hide(widget); 158 gtk_widget_hide(widget);
159 159
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 g_value_set_int(&value, allocation->width - requisition.width); 241 g_value_set_int(&value, allocation->width - requisition.width);
242 gtk_container_child_set_property(GTK_CONTAINER(floating_container), 242 gtk_container_child_set_property(GTK_CONTAINER(floating_container),
243 status->widget(), "x", &value); 243 status->widget(), "x", &value);
244 244
245 int child_y = std::max(allocation->height - requisition.height, 0); 245 int child_y = std::max(allocation->height - requisition.height, 0);
246 g_value_set_int(&value, child_y + status->y_offset()); 246 g_value_set_int(&value, child_y + status->y_offset());
247 gtk_container_child_set_property(GTK_CONTAINER(floating_container), 247 gtk_container_child_set_property(GTK_CONTAINER(floating_container),
248 status->widget(), "y", &value); 248 status->widget(), "y", &value);
249 g_value_unset(&value); 249 g_value_unset(&value);
250 } 250 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/tab_contents/core_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698