| 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_win.h" | 5 #include "chrome/browser/ui/panels/auto_hiding_desktop_bar_win.h" |
| 6 | 6 |
| 7 #include <shellapi.h> | 7 #include <shellapi.h> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "ui/views/widget/monitor_win.h" | 10 #include "views/widget/monitor_win.h" |
| 11 | 11 |
| 12 namespace { | 12 namespace { |
| 13 // The thickness of the area of an auto-hiding taskbar that is still visible | 13 // The thickness of the area of an auto-hiding taskbar that is still visible |
| 14 // when the taskbar becomes hidden. | 14 // when the taskbar becomes hidden. |
| 15 const int kHiddenAutoHideTaskbarThickness = 2; | 15 const int kHiddenAutoHideTaskbarThickness = 2; |
| 16 | 16 |
| 17 // The polling interval to check auto-hiding taskbars. | 17 // The polling interval to check auto-hiding taskbars. |
| 18 const int kCheckTaskbarPollingIntervalMs = 500; | 18 const int kCheckTaskbarPollingIntervalMs = 500; |
| 19 } // namespace | 19 } // namespace |
| 20 | 20 |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 if (thickness_changed && notify_observer) | 186 if (thickness_changed && notify_observer) |
| 187 observer_->OnAutoHidingDesktopBarThicknessChanged(); | 187 observer_->OnAutoHidingDesktopBarThicknessChanged(); |
| 188 | 188 |
| 189 return true; | 189 return true; |
| 190 } | 190 } |
| 191 | 191 |
| 192 // static | 192 // static |
| 193 AutoHidingDesktopBar* AutoHidingDesktopBar::Create(Observer* observer) { | 193 AutoHidingDesktopBar* AutoHidingDesktopBar::Create(Observer* observer) { |
| 194 return new AutoHidingDesktopBarWin(observer); | 194 return new AutoHidingDesktopBarWin(observer); |
| 195 } | 195 } |
| OLD | NEW |