| OLD | NEW |
| 1 // Copyright (c) 2009 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/gtk/extension_popup_gtk.h" | 5 #include "chrome/browser/gtk/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 |
| 11 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 return; | 164 return; |
| 165 | 165 |
| 166 ExtensionHost* host = manager->CreatePopup(url, browser); | 166 ExtensionHost* host = manager->CreatePopup(url, browser); |
| 167 // This object will delete itself when the info bubble is closed. | 167 // This object will delete itself when the info bubble is closed. |
| 168 new ExtensionPopupGtk(browser, host, anchor, inspect); | 168 new ExtensionPopupGtk(browser, host, anchor, inspect); |
| 169 } | 169 } |
| 170 | 170 |
| 171 gfx::Rect ExtensionPopupGtk::GetViewBounds() { | 171 gfx::Rect ExtensionPopupGtk::GetViewBounds() { |
| 172 return gfx::Rect(host_->view()->native_view()->allocation); | 172 return gfx::Rect(host_->view()->native_view()->allocation); |
| 173 } | 173 } |
| OLD | NEW |