| OLD | NEW |
| 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/nsview_additions.h" | 11 #import "chrome/browser/ui/cocoa/nsview_additions.h" |
| 12 #import "chrome/browser/ui/cocoa/panels/panel_window_controller_cocoa.h" | 12 #import "chrome/browser/ui/cocoa/panels/panel_window_controller_cocoa.h" |
| 13 #import "chrome/browser/ui/panels/panel_constants.h" | 13 #import "chrome/browser/ui/panels/panel_constants.h" |
| 14 #include "grit/generated_resources.h" | 14 #include "grit/generated_resources.h" |
| 15 #include "grit/theme_resources.h" | 15 #include "grit/theme_resources.h" |
| 16 #import "third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.h" | 16 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSBezierPath+RoundRect
.h" |
| 17 #import "third_party/GTM/AppKit/GTMNSColor+Luminance.h" | 17 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSColor+Luminance.h" |
| 18 #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" | 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 // 'Glint' is a glowing light animation on the titlebar to attract user's | 24 // 'Glint' is a glowing light animation on the titlebar to attract user's |
| 25 // attention. Numbers are arbitrary, based on several tries. | 25 // attention. Numbers are arbitrary, based on several tries. |
| 26 const double kGlintAnimationDuration = 1.5; | 26 const double kGlintAnimationDuration = 1.5; |
| 27 const double kGlintRepeatIntervalSeconds = 1.0; | 27 const double kGlintRepeatIntervalSeconds = 1.0; |
| (...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 - (NSButton*)minimizeButton { | 567 - (NSButton*)minimizeButton { |
| 568 return minimizeButton_; | 568 return minimizeButton_; |
| 569 } | 569 } |
| 570 | 570 |
| 571 - (NSButton*)restoreButton { | 571 - (NSButton*)restoreButton { |
| 572 return restoreButton_; | 572 return restoreButton_; |
| 573 } | 573 } |
| 574 | 574 |
| 575 @end | 575 @end |
| 576 | 576 |
| OLD | NEW |