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

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

Issue 5875005: Cleanup: Remove unneeded includes of notification_service.h.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: put includes in right order Created 10 years 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) 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 <algorithm>
10
9 #include "base/i18n/rtl.h" 11 #include "base/i18n/rtl.h"
10 #include "base/message_loop.h" 12 #include "base/message_loop.h"
11 #include "chrome/browser/browser_window.h" 13 #include "chrome/browser/browser_window.h"
12 #include "chrome/browser/debugger/devtools_manager.h" 14 #include "chrome/browser/debugger/devtools_manager.h"
13 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/extensions/extension_host.h" 16 #include "chrome/browser/extensions/extension_host.h"
15 #include "chrome/browser/extensions/extension_process_manager.h" 17 #include "chrome/browser/extensions/extension_process_manager.h"
16 #include "chrome/browser/gtk/gtk_theme_provider.h" 18 #include "chrome/browser/gtk/gtk_theme_provider.h"
17 #include "chrome/browser/renderer_host/render_view_host.h" 19 #include "chrome/browser/renderer_host/render_view_host.h"
18 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" 20 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h"
19 #include "chrome/browser/ui/browser.h" 21 #include "chrome/browser/ui/browser.h"
20 #include "chrome/common/notification_service.h" 22 #include "chrome/common/notification_details.h"
23 #include "chrome/common/notification_source.h"
21 #include "googleurl/src/gurl.h" 24 #include "googleurl/src/gurl.h"
22 25
23 ExtensionPopupGtk* ExtensionPopupGtk::current_extension_popup_ = NULL; 26 ExtensionPopupGtk* ExtensionPopupGtk::current_extension_popup_ = NULL;
24 27
25 // The minimum/maximum dimensions of the extension popup. 28 // The minimum/maximum dimensions of the extension popup.
26 // 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.
27 // 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.
28 const int ExtensionPopupGtk::kMinWidth = 25; 31 const int ExtensionPopupGtk::kMinWidth = 25;
29 const int ExtensionPopupGtk::kMinHeight = 25; 32 const int ExtensionPopupGtk::kMinHeight = 25;
30 const int ExtensionPopupGtk::kMaxWidth = 800; 33 const int ExtensionPopupGtk::kMaxWidth = 800;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 return; 164 return;
162 165
163 ExtensionHost* host = manager->CreatePopup(url, browser); 166 ExtensionHost* host = manager->CreatePopup(url, browser);
164 // This object will delete itself when the info bubble is closed. 167 // This object will delete itself when the info bubble is closed.
165 new ExtensionPopupGtk(browser, host, anchor, inspect); 168 new ExtensionPopupGtk(browser, host, anchor, inspect);
166 } 169 }
167 170
168 gfx::Rect ExtensionPopupGtk::GetViewBounds() { 171 gfx::Rect ExtensionPopupGtk::GetViewBounds() {
169 return gfx::Rect(host_->view()->native_view()->allocation); 172 return gfx::Rect(host_->view()->native_view()->allocation);
170 } 173 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/extension_installed_bubble_gtk.cc ('k') | chrome/browser/gtk/infobar_container_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698