| OLD | NEW |
| 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/panels/panel_manager.h" | 5 #include "chrome/browser/ui/panels/panel_manager.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 #include "chrome/browser/ui/panels/detached_panel_collection.h" | 12 #include "chrome/browser/ui/panels/detached_panel_collection.h" |
| 13 #include "chrome/browser/ui/panels/docked_panel_collection.h" | 13 #include "chrome/browser/ui/panels/docked_panel_collection.h" |
| 14 #include "chrome/browser/ui/panels/native_panel_stack.h" | 14 #include "chrome/browser/ui/panels/native_panel_stack_window.h" |
| 15 #include "chrome/browser/ui/panels/panel_drag_controller.h" | 15 #include "chrome/browser/ui/panels/panel_drag_controller.h" |
| 16 #include "chrome/browser/ui/panels/panel_mouse_watcher.h" | 16 #include "chrome/browser/ui/panels/panel_mouse_watcher.h" |
| 17 #include "chrome/browser/ui/panels/panel_resize_controller.h" | 17 #include "chrome/browser/ui/panels/panel_resize_controller.h" |
| 18 #include "chrome/browser/ui/panels/stacked_panel_collection.h" | 18 #include "chrome/browser/ui/panels/stacked_panel_collection.h" |
| 19 #include "chrome/common/chrome_notification_types.h" | 19 #include "chrome/common/chrome_notification_types.h" |
| 20 #include "chrome/common/chrome_switches.h" | 20 #include "chrome/common/chrome_switches.h" |
| 21 #include "chrome/common/chrome_version_info.h" | 21 #include "chrome/common/chrome_version_info.h" |
| 22 #include "content/public/browser/notification_service.h" | 22 #include "content/public/browser/notification_service.h" |
| 23 #include "content/public/browser/notification_source.h" | 23 #include "content/public/browser/notification_source.h" |
| 24 | 24 |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 void PanelManager::SetMouseWatcher(PanelMouseWatcher* watcher) { | 550 void PanelManager::SetMouseWatcher(PanelMouseWatcher* watcher) { |
| 551 panel_mouse_watcher_.reset(watcher); | 551 panel_mouse_watcher_.reset(watcher); |
| 552 } | 552 } |
| 553 | 553 |
| 554 void PanelManager::OnPanelAnimationEnded(Panel* panel) { | 554 void PanelManager::OnPanelAnimationEnded(Panel* panel) { |
| 555 content::NotificationService::current()->Notify( | 555 content::NotificationService::current()->Notify( |
| 556 chrome::NOTIFICATION_PANEL_BOUNDS_ANIMATIONS_FINISHED, | 556 chrome::NOTIFICATION_PANEL_BOUNDS_ANIMATIONS_FINISHED, |
| 557 content::Source<Panel>(panel), | 557 content::Source<Panel>(panel), |
| 558 content::NotificationService::NoDetails()); | 558 content::NotificationService::NoDetails()); |
| 559 } | 559 } |
| OLD | NEW |