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

Unified Diff: chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h

Issue 10870094: Constrained window sheet controller (test patch) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename Created 8 years, 4 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
Index: chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h
diff --git a/chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h b/chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h
new file mode 100644
index 0000000000000000000000000000000000000000..9063035f200385ba01d3111d02e08e80b425f75f
--- /dev/null
+++ b/chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_BUTTON_
+#define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_BUTTON_
+
+#import <Cocoa/Cocoa.h>
+
+#import "chrome/browser/ui/cocoa/tracking_area.h"
+
+// A push button for use in a constrained window. Specialized constrained
+// windows that need a push button should use this class instead of NSButton.
+@interface ConstrainedWindowButton : NSButton {
+ @private
+ ScopedCrTrackingArea trackingArea_;
+}
+
+@end
+
+// A button cell used by ConstrainedWindowButton.
+@interface ConstrainedWindowButtonCell : NSButtonCell {
+ @private
+ BOOL isMouseInside_;
+}
+
+@property(nonatomic,assign) BOOL isMouseInside;
+
+@end
+
+#endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_BUTTON_

Powered by Google App Engine
This is Rietveld 408576698