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 "chrome/browser/ui/cocoa/extensions/browser_actions_controller.h" | 5 #import "chrome/browser/ui/cocoa/extensions/browser_actions_controller.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
10 #include "chrome/browser/extensions/extension_message_bubble_controller.h" | 10 #include "chrome/browser/extensions/extension_message_bubble_controller.h" |
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 #pragma mark Testing Methods | 938 #pragma mark Testing Methods |
939 | 939 |
940 - (BrowserActionButton*)buttonWithIndex:(NSUInteger)index { | 940 - (BrowserActionButton*)buttonWithIndex:(NSUInteger)index { |
941 return index < [buttons_ count] ? [buttons_ objectAtIndex:index] : nil; | 941 return index < [buttons_ count] ? [buttons_ objectAtIndex:index] : nil; |
942 } | 942 } |
943 | 943 |
944 - (ToolbarActionsBar*)toolbarActionsBar { | 944 - (ToolbarActionsBar*)toolbarActionsBar { |
945 return toolbarActionsBar_.get(); | 945 return toolbarActionsBar_.get(); |
946 } | 946 } |
947 | 947 |
948 + (BrowserActionsController*)fromToolbarActionsBarDelegate: | |
949 (ToolbarActionsBarDelegate*)delegate { | |
950 return static_cast<ToolbarActionsBarBridge*>(delegate)->controller_for_test(); | |
951 } | |
952 | |
953 @end | 948 @end |
OLD | NEW |