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

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

Issue 9420007: Move RenderWidgetHostView into content namespace. Fix include paths. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix linux_chromeos_gtk build issue not caught by trybots. Created 8 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/bind.h" 11 #include "base/bind.h"
12 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/i18n/rtl.h" 14 #include "base/i18n/rtl.h"
15 #include "base/message_loop.h" 15 #include "base/message_loop.h"
16 #include "chrome/browser/debugger/devtools_window.h" 16 #include "chrome/browser/debugger/devtools_window.h"
17 #include "chrome/browser/extensions/extension_host.h" 17 #include "chrome/browser/extensions/extension_host.h"
18 #include "chrome/browser/extensions/extension_process_manager.h" 18 #include "chrome/browser/extensions/extension_process_manager.h"
19 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
20 #include "chrome/browser/ui/browser.h" 20 #include "chrome/browser/ui/browser.h"
21 #include "chrome/browser/ui/browser_window.h" 21 #include "chrome/browser/ui/browser_window.h"
22 #include "chrome/browser/ui/gtk/gtk_theme_service.h" 22 #include "chrome/browser/ui/gtk/gtk_theme_service.h"
23 #include "chrome/common/chrome_notification_types.h" 23 #include "chrome/common/chrome_notification_types.h"
24 #include "content/browser/renderer_host/render_view_host.h" 24 #include "content/browser/renderer_host/render_view_host.h"
25 #include "content/browser/renderer_host/render_widget_host_view.h"
26 #include "content/public/browser/notification_details.h" 25 #include "content/public/browser/notification_details.h"
27 #include "content/public/browser/notification_source.h" 26 #include "content/public/browser/notification_source.h"
27 #include "content/public/browser/render_widget_host_view.h"
28 #include "googleurl/src/gurl.h" 28 #include "googleurl/src/gurl.h"
29 29
30 ExtensionPopupGtk* ExtensionPopupGtk::current_extension_popup_ = NULL; 30 ExtensionPopupGtk* ExtensionPopupGtk::current_extension_popup_ = NULL;
31 31
32 // The minimum/maximum dimensions of the extension popup. 32 // The minimum/maximum dimensions of the extension popup.
33 // The minimum is just a little larger than the size of a browser action button. 33 // The minimum is just a little larger than the size of a browser action button.
34 // The maximum is an arbitrary number that should be smaller than most screens. 34 // The maximum is an arbitrary number that should be smaller than most screens.
35 const int ExtensionPopupGtk::kMinWidth = 25; 35 const int ExtensionPopupGtk::kMinWidth = 25;
36 const int ExtensionPopupGtk::kMinHeight = 25; 36 const int ExtensionPopupGtk::kMinHeight = 25;
37 const int ExtensionPopupGtk::kMaxWidth = 800; 37 const int ExtensionPopupGtk::kMaxWidth = 800;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 void ExtensionPopupGtk::DestroyPopupWithoutResult() { 191 void ExtensionPopupGtk::DestroyPopupWithoutResult() {
192 DestroyPopup(); 192 DestroyPopup();
193 } 193 }
194 194
195 gfx::Rect ExtensionPopupGtk::GetViewBounds() { 195 gfx::Rect ExtensionPopupGtk::GetViewBounds() {
196 GtkAllocation allocation; 196 GtkAllocation allocation;
197 gtk_widget_get_allocation(host_->view()->native_view(), &allocation); 197 gtk_widget_get_allocation(host_->view()->native_view(), &allocation);
198 return gfx::Rect(allocation); 198 return gfx::Rect(allocation);
199 } 199 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('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