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

Side by Side Diff: chrome/browser/ui/cocoa/panels/panel_titlebar_view_cocoa.mm

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
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 #import "chrome/browser/ui/cocoa/panels/panel_titlebar_view_cocoa.h" 5 #import "chrome/browser/ui/cocoa/panels/panel_titlebar_view_cocoa.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/mac/scoped_nsautorelease_pool.h" 10 #include "base/mac/scoped_nsautorelease_pool.h"
11 #import "chrome/browser/ui/cocoa/hover_image_button.h"
12 #import "chrome/browser/ui/cocoa/nsview_additions.h" 11 #import "chrome/browser/ui/cocoa/nsview_additions.h"
13 #import "chrome/browser/ui/cocoa/panels/panel_window_controller_cocoa.h" 12 #import "chrome/browser/ui/cocoa/panels/panel_window_controller_cocoa.h"
14 #import "chrome/browser/ui/panels/panel_constants.h" 13 #import "chrome/browser/ui/panels/panel_constants.h"
15 #include "grit/generated_resources.h" 14 #include "grit/generated_resources.h"
16 #include "grit/theme_resources.h" 15 #include "grit/theme_resources.h"
17 #import "third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.h" 16 #import "third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.h"
18 #import "third_party/GTM/AppKit/GTMNSColor+Luminance.h" 17 #import "third_party/GTM/AppKit/GTMNSColor+Luminance.h"
19 #include "ui/base/l10n/l10n_util_mac.h" 18 #include "ui/base/l10n/l10n_util_mac.h"
19 #import "ui/base/cocoa/hover_image_button.h"
20 #include "ui/base/resource/resource_bundle.h" 20 #include "ui/base/resource/resource_bundle.h"
21 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" 21 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h"
22 #include "ui/gfx/image/image.h" 22 #include "ui/gfx/image/image.h"
23 23
24 const int kButtonPadding = 8; 24 const int kButtonPadding = 8;
25 const int kIconAndTextPadding = 5; 25 const int kIconAndTextPadding = 5;
26 26
27 // 'Glint' is a glowing light animation on the titlebar to attract user's 27 // 'Glint' is a glowing light animation on the titlebar to attract user's
28 // attention. Numbers are arbitrary, based on several tries. 28 // attention. Numbers are arbitrary, based on several tries.
29 const double kGlintAnimationDuration = 1.5; 29 const double kGlintAnimationDuration = 1.5;
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 - (NSButton*)minimizeButton { 565 - (NSButton*)minimizeButton {
566 return minimizeButton_; 566 return minimizeButton_;
567 } 567 }
568 568
569 - (NSButton*)restoreButton { 569 - (NSButton*)restoreButton {
570 return restoreButton_; 570 return restoreButton_;
571 } 571 }
572 572
573 @end 573 @end
574 574
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/notifications/balloon_controller.mm ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698