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

Side by Side Diff: chrome/browser/ui/cocoa/hover_close_button.h

Issue 12937008: Move HoverButton and HoverImageButton from chrome/browser/ui/cocoa/ to ui/base/cocoa. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/cocoa/hover_button.mm ('k') | chrome/browser/ui/cocoa/hover_image_button.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/cocoa/hover_button.h" 5 #ifndef CHROME_BROWSER_UI_COCOA_HOVER_CLOSE_BUTTON_H_
6 #define CHROME_BROWSER_UI_COCOA_HOVER_CLOSE_BUTTON_H_
6 7
8 #import <Cocoa/Cocoa.h>
9
10 #import "ui/base/cocoa/hover_button.h"
7 11
8 @class GTMKeyValueAnimation; 12 @class GTMKeyValueAnimation;
9 13
10 // The standard close button for our Mac UI which is the "x" that changes to a 14 // The standard close button for our Mac UI which is the "x" that changes to a
11 // dark circle with the "x" when you hover over it. Used to close tabs. 15 // dark circle with the "x" when you hover over it. Used to close tabs.
12 @interface HoverCloseButton : HoverButton<NSAnimationDelegate> { 16 @interface HoverCloseButton : HoverButton<NSAnimationDelegate> {
13 @private 17 @private
14 GTMKeyValueAnimation* fadeOutAnimation_; 18 GTMKeyValueAnimation* fadeOutAnimation_;
15 HoverState previousState_; 19 HoverState previousState_;
16 } 20 }
17 21
18 @end 22 @end
19 23
20 // A version of HoverCloseButton with the "x" icon changed to match the WebUI 24 // A version of HoverCloseButton with the "x" icon changed to match the WebUI
21 // look. 25 // look.
22 @interface WebUIHoverCloseButton : HoverCloseButton 26 @interface WebUIHoverCloseButton : HoverCloseButton
23 @end 27 @end
28
29 #endif // CHROME_BROWSER_UI_COCOA_HOVER_CLOSE_BUTTON_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/hover_button.mm ('k') | chrome/browser/ui/cocoa/hover_image_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698