Chromium Code Reviews| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 117 wm_type != ui::WM_ICE_WM && | 117 wm_type != ui::WM_ICE_WM && |
| 118 wm_type != ui::WM_KWIN && | 118 wm_type != ui::WM_KWIN && |
| 119 wm_type != ui::WM_METACITY && | 119 wm_type != ui::WM_METACITY && |
| 120 wm_type != ui::WM_MUFFIN && | 120 wm_type != ui::WM_MUFFIN && |
| 121 wm_type != ui::WM_MUTTER && | 121 wm_type != ui::WM_MUTTER && |
| 122 wm_type != ui::WM_XFWM4) { | 122 wm_type != ui::WM_XFWM4) { |
| 123 return false; | 123 return false; |
| 124 } | 124 } |
| 125 #endif // TOOLKIT_GTK | 125 #endif // TOOLKIT_GTK |
| 126 | 126 |
| 127 #if defined(OS_WIN) | 127 #if defined(OS_WIN) && !defined(USE_AURA) |
|
Dmitry Titov
2013/11/05 05:53:07
same as in other file, I don't see why we need tes
| |
| 128 // No panels in Metro mode. | 128 // No panels in Metro mode. |
| 129 if (win8::IsSingleWindowMetroMode()) | 129 if (win8::IsSingleWindowMetroMode()) |
| 130 return false; | 130 return false; |
| 131 #endif // OS_WIN | 131 #endif // OS_WIN |
| 132 | 132 |
| 133 chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel(); | 133 chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel(); |
| 134 if (channel == chrome::VersionInfo::CHANNEL_STABLE || | 134 if (channel == chrome::VersionInfo::CHANNEL_STABLE || |
| 135 channel == chrome::VersionInfo::CHANNEL_BETA) { | 135 channel == chrome::VersionInfo::CHANNEL_BETA) { |
| 136 return CommandLine::ForCurrentProcess()->HasSwitch( | 136 return CommandLine::ForCurrentProcess()->HasSwitch( |
| 137 switches::kEnablePanels) || | 137 switches::kEnablePanels) || |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 565 void PanelManager::SetMouseWatcher(PanelMouseWatcher* watcher) { | 565 void PanelManager::SetMouseWatcher(PanelMouseWatcher* watcher) { |
| 566 panel_mouse_watcher_.reset(watcher); | 566 panel_mouse_watcher_.reset(watcher); |
| 567 } | 567 } |
| 568 | 568 |
| 569 void PanelManager::OnPanelAnimationEnded(Panel* panel) { | 569 void PanelManager::OnPanelAnimationEnded(Panel* panel) { |
| 570 content::NotificationService::current()->Notify( | 570 content::NotificationService::current()->Notify( |
| 571 chrome::NOTIFICATION_PANEL_BOUNDS_ANIMATIONS_FINISHED, | 571 chrome::NOTIFICATION_PANEL_BOUNDS_ANIMATIONS_FINISHED, |
| 572 content::Source<Panel>(panel), | 572 content::Source<Panel>(panel), |
| 573 content::NotificationService::NoDetails()); | 573 content::NotificationService::NoDetails()); |
| 574 } | 574 } |
| OLD | NEW |