OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |