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

Unified Diff: chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.cc

Issue 8588068: GTK: Create the start of a compatibility header wrapping deprecated methods. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to ToT and remove views/ cleanups. Created 9 years, 1 month 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/browser/ui/gtk/hover_controller_gtk.cc ('k') | chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.cc
diff --git a/chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.cc b/chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.cc
index 5cf92672acc2c459538c88d607c4a67b977ef3b6..441b812fa0da4cddf440bfd4a15c918605507c63 100644
--- a/chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.cc
+++ b/chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.cc
@@ -28,6 +28,7 @@
#include "chrome/common/chrome_notification_types.h"
#include "content/public/browser/notification_source.h"
#include "grit/theme_resources.h"
+#include "ui/base/gtk/gtk_compat.h"
#include "ui/base/gtk/gtk_hig_constants.h"
#include "ui/base/gtk/gtk_windowing.h"
#include "ui/gfx/color_utils.h"
@@ -365,7 +366,7 @@ void OmniboxPopupViewGtk::UpdatePopupAppearance() {
}
gfx::Rect OmniboxPopupViewGtk::GetTargetBounds() {
- if (!GTK_WIDGET_REALIZED(window_))
+ if (!gtk_widget_get_realized(window_))
return gfx::Rect();
gfx::Rect retval = gtk_util::GetWidgetScreenBounds(window_);
@@ -461,7 +462,7 @@ void OmniboxPopupViewGtk::StackWindow() {
gfx::NativeView omnibox_view = omnibox_view_->GetNativeView();
DCHECK(GTK_IS_WIDGET(omnibox_view));
GtkWidget* toplevel = gtk_widget_get_toplevel(omnibox_view);
- DCHECK(GTK_WIDGET_TOPLEVEL(toplevel));
+ DCHECK(gtk_widget_is_toplevel(toplevel));
ui::StackPopupWindow(window_, toplevel);
}
« no previous file with comments | « chrome/browser/ui/gtk/hover_controller_gtk.cc ('k') | chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698