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

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

Issue 498773003: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (part 2 … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 3 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 "chrome/grit/generated_resources.h"
15 #include "grit/theme_resources.h" 15 #include "grit/theme_resources.h"
16 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSBezierPath+RoundRect .h" 16 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSBezierPath+RoundRect .h"
17 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSColor+Luminance.h" 17 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSColor+Luminance.h"
18 #import "ui/base/cocoa/hover_image_button.h"
18 #include "ui/base/l10n/l10n_util_mac.h" 19 #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/image/image.h"
21 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" 22 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.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;
28 const int kNumberOfGlintRepeats = 4; // 5 total, including initial flash. 28 const int kNumberOfGlintRepeats = 4; // 5 total, including initial flash.
29 29
30 // Used to implement TestingAPI 30 // Used to implement TestingAPI
31 static NSEvent* MakeMouseEvent(NSEventType type, 31 static NSEvent* MakeMouseEvent(NSEventType type,
32 NSPoint point, 32 NSPoint point,
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698