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