| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #import "chrome/browser/ui/cocoa/fullscreen/fullscreen_toolbar_mouse_tracker.h" | 5 #import "chrome/browser/ui/cocoa/fullscreen/fullscreen_toolbar_mouse_tracker.h" |
| 6 | 6 |
| 7 #include "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 7 #include "chrome/browser/ui/cocoa/fullscreen/fullscreen_toolbar_animation_contro
ller.h" | 8 #include "chrome/browser/ui/cocoa/fullscreen/fullscreen_toolbar_animation_contro
ller.h" |
| 8 #import "chrome/browser/ui/cocoa/fullscreen_toolbar_controller.h" | 9 #import "chrome/browser/ui/cocoa/fullscreen_toolbar_controller.h" |
| 9 #include "ui/base/cocoa/appkit_utils.h" | 10 #include "ui/base/cocoa/appkit_utils.h" |
| 10 #import "ui/base/cocoa/tracking_area.h" | 11 #import "ui/base/cocoa/tracking_area.h" |
| 11 | 12 |
| 12 namespace { | 13 namespace { |
| 13 | 14 |
| 14 // Additional height threshold added at the toolbar's bottom. This is to mimic | 15 // Additional height threshold added at the toolbar's bottom. This is to mimic |
| 15 // threshold the mouse position needs to be at before the menubar automatically | 16 // threshold the mouse position needs to be at before the menubar automatically |
| 16 // hides. | 17 // hides. |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 - (void)mouseExited:(NSEvent*)event { | 123 - (void)mouseExited:(NSEvent*)event { |
| 123 DCHECK_EQ([event trackingArea], trackingArea_.get()); | 124 DCHECK_EQ([event trackingArea], trackingArea_.get()); |
| 124 | 125 |
| 125 animationController_->AnimateToolbarOutIfPossible(); | 126 animationController_->AnimateToolbarOutIfPossible(); |
| 126 | 127 |
| 127 [owner_ updateToolbar]; | 128 [owner_ updateToolbar]; |
| 128 [self removeTrackingArea]; | 129 [self removeTrackingArea]; |
| 129 } | 130 } |
| 130 | 131 |
| 131 @end | 132 @end |
| OLD | NEW |