| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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/auto_hiding_desktop_bar.h" | 5 #include "chrome/browser/ui/panels/auto_hiding_desktop_bar.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 | 9 |
| 10 namespace { | 10 namespace { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 DISALLOW_COPY_AND_ASSIGN(AutoHidingDesktopBarGtk); | 26 DISALLOW_COPY_AND_ASSIGN(AutoHidingDesktopBarGtk); |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 AutoHidingDesktopBarGtk::AutoHidingDesktopBarGtk(Observer* observer) | 29 AutoHidingDesktopBarGtk::AutoHidingDesktopBarGtk(Observer* observer) |
| 30 : observer_(observer) { | 30 : observer_(observer) { |
| 31 DCHECK(observer); | 31 DCHECK(observer); |
| 32 } | 32 } |
| 33 | 33 |
| 34 void AutoHidingDesktopBarGtk::UpdateWorkArea(const gfx::Rect& work_area) { | 34 void AutoHidingDesktopBarGtk::UpdateWorkArea(const gfx::Rect& work_area) { |
| 35 // TODO(prasadt): Not implemented yet. | 35 // TODO(prasadt): Not implemented yet. http://crbug.com/102719 |
| 36 } | 36 } |
| 37 | 37 |
| 38 bool AutoHidingDesktopBarGtk::IsEnabled( | 38 bool AutoHidingDesktopBarGtk::IsEnabled( |
| 39 AutoHidingDesktopBar::Alignment alignment) { | 39 AutoHidingDesktopBar::Alignment alignment) { |
| 40 // TODO(prasadt): Not implemented yet. | 40 // TODO(prasadt): Not implemented yet. http://crbug.com/102719 |
| 41 return false; | 41 return false; |
| 42 } | 42 } |
| 43 | 43 |
| 44 int AutoHidingDesktopBarGtk::GetThickness( | 44 int AutoHidingDesktopBarGtk::GetThickness( |
| 45 AutoHidingDesktopBar::Alignment alignment) const { | 45 AutoHidingDesktopBar::Alignment alignment) const { |
| 46 // TODO(prasadt): Not implemented yet. | 46 // TODO(prasadt): Not implemented yet. http://crbug.com/102719 |
| 47 return 0; | 47 return 0; |
| 48 } | 48 } |
| 49 | 49 |
| 50 AutoHidingDesktopBar::Visibility AutoHidingDesktopBarGtk::GetVisibility( | 50 AutoHidingDesktopBar::Visibility AutoHidingDesktopBarGtk::GetVisibility( |
| 51 AutoHidingDesktopBar::Alignment alignment) const { | 51 AutoHidingDesktopBar::Alignment alignment) const { |
| 52 // TODO(prasadt): Not implemented yet. | 52 // TODO(prasadt): Not implemented yet. http://crbug.com/102719 |
| 53 return AutoHidingDesktopBar::HIDDEN; | 53 return AutoHidingDesktopBar::HIDDEN; |
| 54 } | 54 } |
| 55 | 55 |
| 56 } // namespace | 56 } // namespace |
| 57 | 57 |
| 58 // static | 58 // static |
| 59 AutoHidingDesktopBar* AutoHidingDesktopBar::Create(Observer* observer) { | 59 AutoHidingDesktopBar* AutoHidingDesktopBar::Create(Observer* observer) { |
| 60 return new AutoHidingDesktopBarGtk(observer); | 60 return new AutoHidingDesktopBarGtk(observer); |
| 61 } | 61 } |
| OLD | NEW |