Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: chrome/browser/ui/cocoa/fullscreen/fullscreen_toolbar_mouse_tracker.mm

Issue 2462433003: Fix compilation error on OSX 10.12. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698