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

Unified Diff: chrome/browser/ui/cocoa/presentation_mode_controller.h

Issue 12328161: [Mac] Use private, undocumented Carbon events to make the presentation mode animation better. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/presentation_mode_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/presentation_mode_controller.h
diff --git a/chrome/browser/ui/cocoa/presentation_mode_controller.h b/chrome/browser/ui/cocoa/presentation_mode_controller.h
index 728c2da49317a9331bf8f592f4f1d1f97974c939..284e59e3a9a2abb0c611d338557a86a196842bbe 100644
--- a/chrome/browser/ui/cocoa/presentation_mode_controller.h
+++ b/chrome/browser/ui/cocoa/presentation_mode_controller.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_UI_COCOA_PRESENTATION_MODE_CONTROLLER_H_
#define CHROME_BROWSER_UI_COCOA_PRESENTATION_MODE_CONTROLLER_H_
+#include <Carbon/Carbon.h>
#import <Cocoa/Cocoa.h>
#include "base/mac/mac_util.h"
@@ -51,6 +52,10 @@
// running.
scoped_nsobject<DropdownAnimation> currentAnimation_;
+ // Carbon event handler that's used on 10.7+ to track the menu bar as it's
+ // animating in and out. Used instead of currentAnimation_.
+ EventHandlerRef menuBarTrackingHandler_;
+
// Timers for scheduled showing/hiding of the bar (which are always done with
// animation).
scoped_nsobject<NSTimer> showTimer_;
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/presentation_mode_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698