| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 
|  | 2 // Use of this source code is governed by a BSD-style license that can be | 
|  | 3 // found in the LICENSE file. | 
|  | 4 | 
|  | 5 #include "chrome/browser/ui/panels/auto_hiding_desktop_bar.h" | 
|  | 6 | 
|  | 7 #include "base/compiler_specific.h" | 
|  | 8 | 
|  | 9 namespace { | 
|  | 10 | 
|  | 11 class AutoHidingDesktopBarAura : public AutoHidingDesktopBar { | 
|  | 12  public: | 
|  | 13   explicit AutoHidingDesktopBarAura(Observer* observer); | 
|  | 14   virtual ~AutoHidingDesktopBarAura() { } | 
|  | 15 | 
|  | 16   // Overridden from AutoHidingDesktopBar: | 
|  | 17   virtual void UpdateWorkArea(const gfx::Rect& work_area) OVERRIDE; | 
|  | 18   virtual bool IsEnabled(Alignment alignment) OVERRIDE; | 
|  | 19   virtual int GetThickness(Alignment alignment) const OVERRIDE; | 
|  | 20   virtual Visibility GetVisibility(Alignment alignment) const OVERRIDE; | 
|  | 21 | 
|  | 22  private: | 
|  | 23   Observer* observer_; | 
|  | 24 | 
|  | 25   DISALLOW_COPY_AND_ASSIGN(AutoHidingDesktopBarAura); | 
|  | 26 }; | 
|  | 27 | 
|  | 28 AutoHidingDesktopBarAura::AutoHidingDesktopBarAura(Observer* observer) | 
|  | 29     : observer_(observer) { | 
|  | 30 } | 
|  | 31 | 
|  | 32 void AutoHidingDesktopBarAura::UpdateWorkArea(const gfx::Rect& work_area) { | 
|  | 33 } | 
|  | 34 | 
|  | 35 bool AutoHidingDesktopBarAura::IsEnabled( | 
|  | 36     AutoHidingDesktopBar::Alignment alignment) { | 
|  | 37   // No taskbar exists on ChromeOS. | 
|  | 38   return false; | 
|  | 39 } | 
|  | 40 | 
|  | 41 int AutoHidingDesktopBarAura::GetThickness( | 
|  | 42     AutoHidingDesktopBar::Alignment alignment) const { | 
|  | 43   return 0; | 
|  | 44 } | 
|  | 45 | 
|  | 46 AutoHidingDesktopBar::Visibility AutoHidingDesktopBarAura::GetVisibility( | 
|  | 47     AutoHidingDesktopBar::Alignment alignment) const { | 
|  | 48   return AutoHidingDesktopBar::HIDDEN; | 
|  | 49 } | 
|  | 50 | 
|  | 51 }  // namespace | 
|  | 52 | 
|  | 53 // static | 
|  | 54 AutoHidingDesktopBar* AutoHidingDesktopBar::Create(Observer* observer) { | 
|  | 55   return new AutoHidingDesktopBarAura(observer); | 
|  | 56 } | 
| OLD | NEW | 
|---|