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

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

Issue 24649002: Clean up a few more unused globals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: thestig comment Created 7 years, 2 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/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/GTM/AppKit/GTMNSBezierPath+RoundRect.h"
17 #import "third_party/GTM/AppKit/GTMNSColor+Luminance.h" 17 #import "third_party/GTM/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 const int kButtonPadding = 5;
25
26 // '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
27 // attention. Numbers are arbitrary, based on several tries. 25 // attention. Numbers are arbitrary, based on several tries.
28 const double kGlintAnimationDuration = 1.5; 26 const double kGlintAnimationDuration = 1.5;
29 const double kGlintRepeatIntervalSeconds = 1.0; 27 const double kGlintRepeatIntervalSeconds = 1.0;
30 const int kNumberOfGlintRepeats = 4; // 5 total, including initial flash. 28 const int kNumberOfGlintRepeats = 4; // 5 total, including initial flash.
31 29
32 // Used to implement TestingAPI 30 // Used to implement TestingAPI
33 static NSEvent* MakeMouseEvent(NSEventType type, 31 static NSEvent* MakeMouseEvent(NSEventType type,
34 NSPoint point, 32 NSPoint point,
35 int modifierFlags, 33 int modifierFlags,
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 - (NSButton*)minimizeButton { 567 - (NSButton*)minimizeButton {
570 return minimizeButton_; 568 return minimizeButton_;
571 } 569 }
572 570
573 - (NSButton*)restoreButton { 571 - (NSButton*)restoreButton {
574 return restoreButton_; 572 return restoreButton_;
575 } 573 }
576 574
577 @end 575 @end
578 576
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698