| 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" |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 extension_id == std::string("ppleadejekpmccmnpjdimmlfljlkdfej") || | 131 extension_id == std::string("ppleadejekpmccmnpjdimmlfljlkdfej") || |
| 132 extension_id == std::string("eggnbpckecmjlblplehfpjjdhhidfdoj"); | 132 extension_id == std::string("eggnbpckecmjlblplehfpjjdhhidfdoj"); |
| 133 } | 133 } |
| 134 | 134 |
| 135 return true; | 135 return true; |
| 136 } | 136 } |
| 137 | 137 |
| 138 // static | 138 // static |
| 139 bool PanelManager::IsPanelStackingEnabled() { | 139 bool PanelManager::IsPanelStackingEnabled() { |
| 140 // Stacked panel mode is not supported in linux-aura. | 140 // Stacked panel mode is not supported in linux-aura. |
| 141 #if defined(OS_LINUX) && !defined(TOOLKIT_GTK) | 141 #if defined(OS_LINUX) |
| 142 return false; | 142 return false; |
| 143 #else | 143 #else |
| 144 return true; | 144 return true; |
| 145 #endif | 145 #endif |
| 146 } | 146 } |
| 147 | 147 |
| 148 // static | 148 // static |
| 149 bool PanelManager::CanUseSystemMinimize() { | 149 bool PanelManager::CanUseSystemMinimize() { |
| 150 #if defined(USE_X11) && !defined(OS_CHROMEOS) | 150 #if defined(USE_X11) && !defined(OS_CHROMEOS) |
| 151 static base::nix::DesktopEnvironment desktop_env = | 151 static base::nix::DesktopEnvironment desktop_env = |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 void PanelManager::SetMouseWatcher(PanelMouseWatcher* watcher) { | 562 void PanelManager::SetMouseWatcher(PanelMouseWatcher* watcher) { |
| 563 panel_mouse_watcher_.reset(watcher); | 563 panel_mouse_watcher_.reset(watcher); |
| 564 } | 564 } |
| 565 | 565 |
| 566 void PanelManager::OnPanelAnimationEnded(Panel* panel) { | 566 void PanelManager::OnPanelAnimationEnded(Panel* panel) { |
| 567 content::NotificationService::current()->Notify( | 567 content::NotificationService::current()->Notify( |
| 568 chrome::NOTIFICATION_PANEL_BOUNDS_ANIMATIONS_FINISHED, | 568 chrome::NOTIFICATION_PANEL_BOUNDS_ANIMATIONS_FINISHED, |
| 569 content::Source<Panel>(panel), | 569 content::Source<Panel>(panel), |
| 570 content::NotificationService::NoDetails()); | 570 content::NotificationService::NoDetails()); |
| 571 } | 571 } |
| OLD | NEW |