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

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

Issue 6296012: Update references part 2: files in chrome/browser/ui/... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/gtk/extension_popup_gtk.h" 5 #include "chrome/browser/ui/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"
12 #include "base/message_loop.h" 12 #include "base/message_loop.h"
13 #include "chrome/browser/browser_window.h" 13 #include "chrome/browser/browser_window.h"
14 #include "chrome/browser/debugger/devtools_manager.h" 14 #include "chrome/browser/debugger/devtools_manager.h"
15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/extensions/extension_host.h" 15 #include "chrome/browser/extensions/extension_host.h"
17 #include "chrome/browser/extensions/extension_process_manager.h" 16 #include "chrome/browser/extensions/extension_process_manager.h"
18 #include "chrome/browser/gtk/gtk_theme_provider.h" 17 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/browser/renderer_host/render_view_host.h" 18 #include "chrome/browser/renderer_host/render_view_host.h"
20 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" 19 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h"
21 #include "chrome/browser/ui/browser.h" 20 #include "chrome/browser/ui/browser.h"
21 #include "chrome/browser/ui/gtk/gtk_theme_provider.h"
22 #include "chrome/common/notification_details.h" 22 #include "chrome/common/notification_details.h"
23 #include "chrome/common/notification_source.h" 23 #include "chrome/common/notification_source.h"
24 #include "googleurl/src/gurl.h" 24 #include "googleurl/src/gurl.h"
25 25
26 ExtensionPopupGtk* ExtensionPopupGtk::current_extension_popup_ = NULL; 26 ExtensionPopupGtk* ExtensionPopupGtk::current_extension_popup_ = NULL;
27 27
28 // The minimum/maximum dimensions of the extension popup. 28 // The minimum/maximum dimensions of the extension popup.
29 // The minimum is just a little larger than the size of a browser action button. 29 // The minimum is just a little larger than the size of a browser action button.
30 // The maximum is an arbitrary number that should be smaller than most screens. 30 // The maximum is an arbitrary number that should be smaller than most screens.
31 const int ExtensionPopupGtk::kMinWidth = 25; 31 const int ExtensionPopupGtk::kMinWidth = 25;
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/extension_popup_gtk.h ('k') | chrome/browser/ui/gtk/extension_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698