Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: chrome/browser/ui/panels/panel_manager.cc

Issue 58873002: Adjusts panel ifdefs for aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698