| 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/overflow_panel_strip.h" | 5 #include "chrome/browser/ui/panels/overflow_panel_strip.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/ui/panels/panel_manager.h" | 8 #include "chrome/browser/ui/panels/panel_manager.h" |
| 9 #include "chrome/browser/ui/panels/native_panel.h" |
| 9 #include "chrome/browser/ui/panels/panel_mouse_watcher.h" | 10 #include "chrome/browser/ui/panels/panel_mouse_watcher.h" |
| 10 #include "chrome/browser/ui/panels/panel_overflow_indicator.h" | 11 #include "chrome/browser/ui/panels/panel_overflow_indicator.h" |
| 11 #include "chrome/common/chrome_notification_types.h" | 12 #include "chrome/common/chrome_notification_types.h" |
| 12 #include "content/public/browser/notification_service.h" | 13 #include "content/public/browser/notification_service.h" |
| 13 #include "ui/base/animation/slide_animation.h" | 14 #include "ui/base/animation/slide_animation.h" |
| 14 | 15 |
| 15 namespace { | 16 namespace { |
| 16 // The width of the overflow area that is expanded to show more info, i.e. | 17 // The width of the overflow area that is expanded to show more info, i.e. |
| 17 // titles, when the mouse hovers over the area. | 18 // titles, when the mouse hovers over the area. |
| 18 static const int kOverflowAreaHoverWidth = 200; | 19 static const int kOverflowAreaHoverWidth = 200; |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 // expanded overflow panels when in full screen mode so no need | 401 // expanded overflow panels when in full screen mode so no need |
| 401 // to detect when mouse hovers over the overflow strip. | 402 // to detect when mouse hovers over the overflow strip. |
| 402 if (is_full_screen) | 403 if (is_full_screen) |
| 403 panel_manager_->mouse_watcher()->RemoveObserver(this); | 404 panel_manager_->mouse_watcher()->RemoveObserver(this); |
| 404 else | 405 else |
| 405 panel_manager_->mouse_watcher()->AddObserver(this); | 406 panel_manager_->mouse_watcher()->AddObserver(this); |
| 406 | 407 |
| 407 for (size_t i = 0; i < panels_.size(); ++i) | 408 for (size_t i = 0; i < panels_.size(); ++i) |
| 408 panels_[i]->FullScreenModeChanged(is_full_screen); | 409 panels_[i]->FullScreenModeChanged(is_full_screen); |
| 409 } | 410 } |
| OLD | NEW |