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/foundation_util.h" |
9 #include "base/mac/mac_util.h" | 10 #include "base/mac/mac_util.h" |
10 #include "base/mac/scoped_nsobject.h" | 11 #include "base/mac/scoped_nsobject.h" |
11 #include "base/mac/sdk_forward_declarations.h" | 12 #include "base/mac/sdk_forward_declarations.h" |
12 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
13 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 14 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
14 #import "chrome/browser/ui/cocoa/info_bubble_view.h" | 15 #import "chrome/browser/ui/cocoa/info_bubble_view.h" |
15 #import "chrome/browser/ui/cocoa/info_bubble_window.h" | 16 #import "chrome/browser/ui/cocoa/info_bubble_window.h" |
16 #import "chrome/browser/ui/cocoa/tabs/tab_strip_model_observer_bridge.h" | 17 #import "chrome/browser/ui/cocoa/tabs/tab_strip_model_observer_bridge.h" |
17 | 18 |
18 @interface BaseBubbleController (Private) | 19 @interface BaseBubbleController (Private) |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 | 381 |
381 - (void)activateTabWithContents:(content::WebContents*)newContents | 382 - (void)activateTabWithContents:(content::WebContents*)newContents |
382 previousContents:(content::WebContents*)oldContents | 383 previousContents:(content::WebContents*)oldContents |
383 atIndex:(NSInteger)index | 384 atIndex:(NSInteger)index |
384 reason:(int)reason { | 385 reason:(int)reason { |
385 // The user switched tabs; close. | 386 // The user switched tabs; close. |
386 [self close]; | 387 [self close]; |
387 } | 388 } |
388 | 389 |
389 @end // BaseBubbleController | 390 @end // BaseBubbleController |
OLD | NEW |