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

Side by Side Diff: chrome/browser/ui/gtk/extensions/extension_popup_gtk.cc

Issue 7669040: content: Move render_widget_host_view_gtk to content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chromeos fix. Created 9 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 | Annotate | Revision Log
OLDNEW
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
11 #include "base/i18n/rtl.h" 11 #include "base/i18n/rtl.h"
12 #include "base/message_loop.h" 12 #include "base/message_loop.h"
13 #include "chrome/browser/debugger/devtools_window.h" 13 #include "chrome/browser/debugger/devtools_window.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/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h"
18 #include "chrome/browser/ui/browser.h" 17 #include "chrome/browser/ui/browser.h"
19 #include "chrome/browser/ui/browser_window.h" 18 #include "chrome/browser/ui/browser_window.h"
20 #include "chrome/browser/ui/gtk/gtk_theme_service.h" 19 #include "chrome/browser/ui/gtk/gtk_theme_service.h"
21 #include "chrome/common/chrome_notification_types.h" 20 #include "chrome/common/chrome_notification_types.h"
22 #include "content/browser/renderer_host/render_view_host.h" 21 #include "content/browser/renderer_host/render_view_host.h"
22 #include "content/browser/renderer_host/render_widget_host_view_gtk.h"
23 #include "content/common/notification_details.h" 23 #include "content/common/notification_details.h"
24 #include "content/common/notification_source.h" 24 #include "content/common/notification_source.h"
25 #include "googleurl/src/gurl.h" 25 #include "googleurl/src/gurl.h"
26 26
27 ExtensionPopupGtk* ExtensionPopupGtk::current_extension_popup_ = NULL; 27 ExtensionPopupGtk* ExtensionPopupGtk::current_extension_popup_ = NULL;
28 28
29 // The minimum/maximum dimensions of the extension popup. 29 // The minimum/maximum dimensions of the extension popup.
30 // The minimum is just a little larger than the size of a browser action button. 30 // The minimum is just a little larger than the size of a browser action button.
31 // The maximum is an arbitrary number that should be smaller than most screens. 31 // The maximum is an arbitrary number that should be smaller than most screens.
32 const int ExtensionPopupGtk::kMinWidth = 25; 32 const int ExtensionPopupGtk::kMinWidth = 25;
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 return; 164 return;
165 165
166 ExtensionHost* host = manager->CreatePopupHost(url, browser); 166 ExtensionHost* host = manager->CreatePopupHost(url, browser);
167 // This object will delete itself when the bubble is closed. 167 // This object will delete itself when the 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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/download/download_shelf_gtk.h ('k') | chrome/browser/ui/gtk/extensions/extension_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698