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

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

Issue 482993003: Move logic to clear ExtensionAction values to ExtensionActionAPI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Latest master for CQ Created 6 years, 4 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
« no previous file with comments | « chrome/browser/extensions/tab_helper.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/strings/sys_string_conversions.h" 11 #include "base/strings/sys_string_conversions.h"
12 #include "chrome/browser/extensions/extension_action.h" 12 #include "chrome/browser/extensions/extension_action.h"
13 #include "chrome/browser/extensions/extension_action_icon_factory.h" 13 #include "chrome/browser/extensions/extension_action_icon_factory.h"
14 #include "chrome/browser/extensions/extension_action_manager.h" 14 #include "chrome/browser/extensions/extension_action_manager.h"
15 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/ui/browser.h" 16 #include "chrome/browser/ui/browser.h"
16 #include "chrome/browser/ui/cocoa/extensions/extension_action_context_menu_contr oller.h" 17 #include "chrome/browser/ui/cocoa/extensions/extension_action_context_menu_contr oller.h"
17 #include "extensions/common/extension.h" 18 #include "extensions/common/extension.h"
18 #include "grit/theme_resources.h" 19 #include "grit/theme_resources.h"
19 #include "skia/ext/skia_utils_mac.h" 20 #include "skia/ext/skia_utils_mac.h"
20 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSAnimation+Duration.h " 21 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSAnimation+Duration.h "
21 #include "ui/gfx/canvas_skia_paint.h" 22 #include "ui/gfx/canvas_skia_paint.h"
22 #include "ui/gfx/image/image.h" 23 #include "ui/gfx/image/image.h"
23 #include "ui/gfx/rect.h" 24 #include "ui/gfx/rect.h"
24 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" 25 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h"
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 operation:NSCompositeSourceOver 331 operation:NSCompositeSourceOver
331 fraction:enabled ? 1.0 : 0.4 332 fraction:enabled ? 1.0 : 0.4
332 respectFlipped:YES 333 respectFlipped:YES
333 hints:nil]; 334 hints:nil];
334 335
335 cellFrame.origin.y += kBrowserActionBadgeOriginYOffset; 336 cellFrame.origin.y += kBrowserActionBadgeOriginYOffset;
336 [self drawBadgeWithinFrame:cellFrame]; 337 [self drawBadgeWithinFrame:cellFrame];
337 } 338 }
338 339
339 @end 340 @end
OLDNEW
« no previous file with comments | « chrome/browser/extensions/tab_helper.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698