| 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/base_bubble_controller.h" | 5 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/mac/bundle_locations.h" | 8 #include "base/mac/bundle_locations.h" |
| 9 #include "base/mac/mac_util.h" | 9 #include "base/mac/mac_util.h" |
| 10 #include "base/memory/scoped_nsobject.h" | 10 #include "base/memory/scoped_nsobject.h" |
| 11 #include "base/string_util.h" | 11 #include "base/strings/string_util.h" |
| 12 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 12 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 13 #import "chrome/browser/ui/cocoa/info_bubble_view.h" | 13 #import "chrome/browser/ui/cocoa/info_bubble_view.h" |
| 14 #import "chrome/browser/ui/cocoa/tabs/tab_strip_model_observer_bridge.h" | 14 #import "chrome/browser/ui/cocoa/tabs/tab_strip_model_observer_bridge.h" |
| 15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
| 16 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
| 17 | 17 |
| 18 @interface BaseBubbleController (Private) | 18 @interface BaseBubbleController (Private) |
| 19 - (void)updateOriginFromAnchor; | 19 - (void)updateOriginFromAnchor; |
| 20 - (void)activateTabWithContents:(content::WebContents*)newContents | 20 - (void)activateTabWithContents:(content::WebContents*)newContents |
| 21 previousContents:(content::WebContents*)oldContents | 21 previousContents:(content::WebContents*)oldContents |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 | 284 |
| 285 - (void)activateTabWithContents:(content::WebContents*)newContents | 285 - (void)activateTabWithContents:(content::WebContents*)newContents |
| 286 previousContents:(content::WebContents*)oldContents | 286 previousContents:(content::WebContents*)oldContents |
| 287 atIndex:(NSInteger)index | 287 atIndex:(NSInteger)index |
| 288 reason:(int)reason { | 288 reason:(int)reason { |
| 289 // The user switched tabs; close. | 289 // The user switched tabs; close. |
| 290 [self close]; | 290 [self close]; |
| 291 } | 291 } |
| 292 | 292 |
| 293 @end // BaseBubbleController | 293 @end // BaseBubbleController |
| OLD | NEW |