OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/extensions/extension_popup_gtk.h" | 5 #include "chrome/browser/ui/gtk/extensions/extension_popup_gtk.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 !being_inspected_, // grab_input | 171 !being_inspected_, // grab_input |
172 GtkThemeService::GetFrom(browser_->profile()), | 172 GtkThemeService::GetFrom(browser_->profile()), |
173 this); | 173 this); |
174 } | 174 } |
175 | 175 |
176 void ExtensionPopupGtk::DestroyPopupWithoutResult() { | 176 void ExtensionPopupGtk::DestroyPopupWithoutResult() { |
177 DestroyPopup(); | 177 DestroyPopup(); |
178 } | 178 } |
179 | 179 |
180 gfx::Rect ExtensionPopupGtk::GetViewBounds() { | 180 gfx::Rect ExtensionPopupGtk::GetViewBounds() { |
181 return gfx::Rect(host_->view()->native_view()->allocation); | 181 GtkAllocation allocation; |
| 182 gtk_widget_get_allocation(host_->view()->native_view(), &allocation); |
| 183 return gfx::Rect(allocation); |
182 } | 184 } |
OLD | NEW |