| 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/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| 11 #include "base/mac/sdk_forward_declarations.h" | 11 #include "base/mac/sdk_forward_declarations.h" |
| 12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
| 13 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 13 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 14 #import "chrome/browser/ui/cocoa/info_bubble_view.h" | 14 #import "chrome/browser/ui/cocoa/info_bubble_view.h" |
| 15 #import "chrome/browser/ui/cocoa/info_bubble_window.h" | 15 #import "chrome/browser/ui/cocoa/info_bubble_window.h" |
| 16 #import "chrome/browser/ui/cocoa/tabs/tab_strip_model_observer_bridge.h" | 16 #import "chrome/browser/ui/cocoa/tabs/tab_strip_model_observer_bridge.h" |
| 17 #include "grit/generated_resources.h" | |
| 18 #include "ui/base/l10n/l10n_util.h" | |
| 19 | 17 |
| 20 @interface BaseBubbleController (Private) | 18 @interface BaseBubbleController (Private) |
| 21 - (void)registerForNotifications; | 19 - (void)registerForNotifications; |
| 22 - (void)updateOriginFromAnchor; | 20 - (void)updateOriginFromAnchor; |
| 23 - (void)activateTabWithContents:(content::WebContents*)newContents | 21 - (void)activateTabWithContents:(content::WebContents*)newContents |
| 24 previousContents:(content::WebContents*)oldContents | 22 previousContents:(content::WebContents*)oldContents |
| 25 atIndex:(NSInteger)index | 23 atIndex:(NSInteger)index |
| 26 reason:(int)reason; | 24 reason:(int)reason; |
| 27 - (void)recordAnchorOffset; | 25 - (void)recordAnchorOffset; |
| 28 - (void)parentWindowDidResize:(NSNotification*)notification; | 26 - (void)parentWindowDidResize:(NSNotification*)notification; |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 | 368 |
| 371 - (void)activateTabWithContents:(content::WebContents*)newContents | 369 - (void)activateTabWithContents:(content::WebContents*)newContents |
| 372 previousContents:(content::WebContents*)oldContents | 370 previousContents:(content::WebContents*)oldContents |
| 373 atIndex:(NSInteger)index | 371 atIndex:(NSInteger)index |
| 374 reason:(int)reason { | 372 reason:(int)reason { |
| 375 // The user switched tabs; close. | 373 // The user switched tabs; close. |
| 376 [self close]; | 374 [self close]; |
| 377 } | 375 } |
| 378 | 376 |
| 379 @end // BaseBubbleController | 377 @end // BaseBubbleController |
| OLD | NEW |