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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/browser_action_button.mm

Issue 10656014: Merge 143605 - grd file update for new 2x assets (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/src/
Patch Set: Created 8 years, 5 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/extensions/browser_action_button.h" 5 #import "chrome/browser/ui/cocoa/extensions/browser_action_button.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/sys_string_conversions.h" 11 #include "base/sys_string_conversions.h"
12 #include "chrome/browser/extensions/image_loading_tracker.h" 12 #include "chrome/browser/extensions/image_loading_tracker.h"
13 #include "chrome/browser/ui/cocoa/extensions/extension_action_context_menu.h" 13 #include "chrome/browser/ui/cocoa/extensions/extension_action_context_menu.h"
14 #import "chrome/browser/ui/cocoa/image_utils.h" 14 #import "chrome/browser/ui/cocoa/image_utils.h"
15 #include "chrome/common/chrome_notification_types.h" 15 #include "chrome/common/chrome_notification_types.h"
16 #include "chrome/common/extensions/extension.h" 16 #include "chrome/common/extensions/extension.h"
17 #include "chrome/common/extensions/extension_action.h" 17 #include "chrome/common/extensions/extension_action.h"
18 #include "chrome/common/extensions/extension_resource.h" 18 #include "chrome/common/extensions/extension_resource.h"
19 #include "content/public/browser/notification_observer.h" 19 #include "content/public/browser/notification_observer.h"
20 #include "content/public/browser/notification_registrar.h" 20 #include "content/public/browser/notification_registrar.h"
21 #include "content/public/browser/notification_source.h" 21 #include "content/public/browser/notification_source.h"
22 #include "grit/theme_resources.h" 22 #include "grit/theme_resources_standard.h"
23 #include "skia/ext/skia_utils_mac.h" 23 #include "skia/ext/skia_utils_mac.h"
24 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" 24 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h"
25 #include "ui/base/resource/resource_bundle.h" 25 #include "ui/base/resource/resource_bundle.h"
26 #include "ui/gfx/canvas_skia_paint.h" 26 #include "ui/gfx/canvas_skia_paint.h"
27 #include "ui/gfx/image/image.h" 27 #include "ui/gfx/image/image.h"
28 #include "ui/gfx/rect.h" 28 #include "ui/gfx/rect.h"
29 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" 29 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h"
30 #include "ui/gfx/size.h" 30 #include "ui/gfx/size.h"
31 31
32 using extensions::Extension; 32 using extensions::Extension;
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 } 326 }
327 327
328 - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView*)controlView { 328 - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView*)controlView {
329 gfx::ScopedNSGraphicsContextSaveGState scopedGState; 329 gfx::ScopedNSGraphicsContextSaveGState scopedGState;
330 [super drawInteriorWithFrame:cellFrame inView:controlView]; 330 [super drawInteriorWithFrame:cellFrame inView:controlView];
331 cellFrame.origin.y += kBrowserActionBadgeOriginYOffset; 331 cellFrame.origin.y += kBrowserActionBadgeOriginYOffset;
332 [self drawBadgeWithinFrame:cellFrame]; 332 [self drawBadgeWithinFrame:cellFrame];
333 } 333 }
334 334
335 @end 335 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698