| 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/views/extensions/extension_popup.h" | 5 #include "chrome/browser/views/extensions/extension_popup.h" |
| 6 | 6 |
| 7 #include "chrome/browser/debugger/devtools_manager.h" | 7 #include "chrome/browser/debugger/devtools_manager.h" |
| 8 #include "chrome/browser/debugger/devtools_toggle_action.h" | 8 #include "chrome/browser/debugger/devtools_toggle_action.h" |
| 9 #include "chrome/browser/extensions/extension_host.h" | 9 #include "chrome/browser/extensions/extension_host.h" |
| 10 #include "chrome/browser/extensions/extension_process_manager.h" | 10 #include "chrome/browser/extensions/extension_process_manager.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "views/widget/root_view.h" | 24 #include "views/widget/root_view.h" |
| 25 #include "views/window/window.h" | 25 #include "views/window/window.h" |
| 26 | 26 |
| 27 | 27 |
| 28 #if defined(OS_LINUX) | 28 #if defined(OS_LINUX) |
| 29 #include "views/widget/widget_gtk.h" | 29 #include "views/widget/widget_gtk.h" |
| 30 #endif | 30 #endif |
| 31 | 31 |
| 32 #if defined(OS_CHROMEOS) | 32 #if defined(OS_CHROMEOS) |
| 33 #include "chrome/browser/chromeos/wm_ipc.h" | 33 #include "chrome/browser/chromeos/wm_ipc.h" |
| 34 #include "cros/chromeos_wm_ipc_enums.h" | 34 #include "third_party/cros/chromeos_wm_ipc_enums.h" |
| 35 #endif | 35 #endif |
| 36 | 36 |
| 37 using views::Widget; | 37 using views::Widget; |
| 38 | 38 |
| 39 // The minimum, and default maximum dimensions of the popup. | 39 // The minimum, and default maximum dimensions of the popup. |
| 40 // The minimum is just a little larger than the size of the button itself. | 40 // The minimum is just a little larger than the size of the button itself. |
| 41 // The default maximum is an arbitrary number that should be smaller than most | 41 // The default maximum is an arbitrary number that should be smaller than most |
| 42 // screens. | 42 // screens. |
| 43 const int ExtensionPopup::kMinWidth = 25; | 43 const int ExtensionPopup::kMinWidth = 25; |
| 44 const int ExtensionPopup::kMinHeight = 25; | 44 const int ExtensionPopup::kMinHeight = 25; |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 DCHECK(closing_) << "ExtensionPopup to be destroyed before being closed."; | 431 DCHECK(closing_) << "ExtensionPopup to be destroyed before being closed."; |
| 432 ExtensionPopup::Observer* observer = observer_; | 432 ExtensionPopup::Observer* observer = observer_; |
| 433 delete this; | 433 delete this; |
| 434 | 434 |
| 435 // |this| is passed only as a 'cookie'. The observer API explicitly takes a | 435 // |this| is passed only as a 'cookie'. The observer API explicitly takes a |
| 436 // void* argument to emphasize this. | 436 // void* argument to emphasize this. |
| 437 if (observer) | 437 if (observer) |
| 438 observer->ExtensionPopupClosed(this); | 438 observer->ExtensionPopupClosed(this); |
| 439 } | 439 } |
| 440 } | 440 } |
| OLD | NEW |