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

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

Issue 10756018: Merge grd files in ui/resources and chrome/app/theme (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, *_standard.rc 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 "browser_actions_controller.h" 5 #import "browser_actions_controller.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <string> 8 #include <string>
9 9
10 #include "base/sys_string_conversions.h" 10 #include "base/sys_string_conversions.h"
(...skipping 12 matching lines...) Expand all
23 #import "chrome/browser/ui/cocoa/menu_button.h" 23 #import "chrome/browser/ui/cocoa/menu_button.h"
24 #include "chrome/browser/ui/tab_contents/tab_contents.h" 24 #include "chrome/browser/ui/tab_contents/tab_contents.h"
25 #include "chrome/common/chrome_notification_types.h" 25 #include "chrome/common/chrome_notification_types.h"
26 #include "chrome/common/extensions/extension_action.h" 26 #include "chrome/common/extensions/extension_action.h"
27 #include "chrome/common/pref_names.h" 27 #include "chrome/common/pref_names.h"
28 #include "content/public/browser/notification_observer.h" 28 #include "content/public/browser/notification_observer.h"
29 #include "content/public/browser/notification_registrar.h" 29 #include "content/public/browser/notification_registrar.h"
30 #include "content/public/browser/notification_details.h" 30 #include "content/public/browser/notification_details.h"
31 #include "content/public/browser/notification_source.h" 31 #include "content/public/browser/notification_source.h"
32 #include "grit/theme_resources.h" 32 #include "grit/theme_resources.h"
33 #include "grit/theme_resources_standard.h"
34 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" 33 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h"
35 #include "ui/gfx/mac/nsimage_cache.h" 34 #include "ui/gfx/mac/nsimage_cache.h"
36 35
37 using extensions::Extension; 36 using extensions::Extension;
38 using extensions::ExtensionList; 37 using extensions::ExtensionList;
39 38
40 NSString* const kBrowserActionVisibilityChangedNotification = 39 NSString* const kBrowserActionVisibilityChangedNotification =
41 @"BrowserActionVisibilityChangedNotification"; 40 @"BrowserActionVisibilityChangedNotification";
42 41
43 namespace { 42 namespace {
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 if (profile_->IsOffTheRecord()) 851 if (profile_->IsOffTheRecord())
853 index = toolbarModel_->IncognitoIndexToOriginal(index); 852 index = toolbarModel_->IncognitoIndexToOriginal(index);
854 if (index < toolbarModel_->size()) { 853 if (index < toolbarModel_->size()) {
855 const Extension* extension = toolbarModel_->GetExtensionByIndex(index); 854 const Extension* extension = toolbarModel_->GetExtensionByIndex(index);
856 return [buttons_ objectForKey:base::SysUTF8ToNSString(extension->id())]; 855 return [buttons_ objectForKey:base::SysUTF8ToNSString(extension->id())];
857 } 856 }
858 return nil; 857 return nil;
859 } 858 }
860 859
861 @end 860 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/extensions/browser_action_button.mm ('k') | chrome/browser/ui/cocoa/framed_browser_window.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698