OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "chrome/browser/browser_window.h" | 11 #include "chrome/browser/browser_window.h" |
12 #include "chrome/browser/debugger/devtools_manager.h" | 12 #include "chrome/browser/debugger/devtools_manager.h" |
13 #include "chrome/browser/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/extensions/extension_host.h" | 14 #include "chrome/browser/extensions/extension_host.h" |
15 #include "chrome/browser/extensions/extension_process_manager.h" | 15 #include "chrome/browser/extensions/extension_process_manager.h" |
16 #include "chrome/browser/gtk/gtk_theme_provider.h" | 16 #include "chrome/browser/gtk/gtk_theme_provider.h" |
17 #include "chrome/browser/renderer_host/render_view_host.h" | 17 #include "chrome/browser/renderer_host/render_view_host.h" |
18 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" | 18 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" |
19 #include "chrome/browser/ui/browser.h" | 19 #include "chrome/browser/ui/browser.h" |
20 #include "chrome/common/notification_service.h" | 20 #include "chrome/common/notification_service.h" |
21 #include "googleurl/src/gurl.h" | 21 #include "googleurl/src/gurl.h" |
22 | 22 |
23 ExtensionPopupGtk* ExtensionPopupGtk::current_extension_popup_ = NULL; | 23 ExtensionPopupGtk* ExtensionPopupGtk::current_extension_popup_ = NULL; |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 return; | 161 return; |
162 | 162 |
163 ExtensionHost* host = manager->CreatePopup(url, browser); | 163 ExtensionHost* host = manager->CreatePopup(url, browser); |
164 // This object will delete itself when the info bubble is closed. | 164 // This object will delete itself when the info bubble is closed. |
165 new ExtensionPopupGtk(browser, host, anchor, inspect); | 165 new ExtensionPopupGtk(browser, host, anchor, inspect); |
166 } | 166 } |
167 | 167 |
168 gfx::Rect ExtensionPopupGtk::GetViewBounds() { | 168 gfx::Rect ExtensionPopupGtk::GetViewBounds() { |
169 return gfx::Rect(host_->view()->native_view()->allocation); | 169 return gfx::Rect(host_->view()->native_view()->allocation); |
170 } | 170 } |
OLD | NEW |