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 <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 | 6 |
7 #import "base/mac/cocoa_protocols.h" | |
8 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
9 | 8 |
10 @class InfoBubbleView; | 9 @class InfoBubbleView; |
11 class TabStripModelObserverBridge; | 10 class TabStripModelObserverBridge; |
12 | 11 |
13 // Base class for bubble controllers. Manages a xib that contains an | 12 // Base class for bubble controllers. Manages a xib that contains an |
14 // InfoBubbleWindow which contains an InfoBubbleView. Contains code to close | 13 // InfoBubbleWindow which contains an InfoBubbleView. Contains code to close |
15 // the bubble window on clicks outside of the window, and the like. | 14 // the bubble window on clicks outside of the window, and the like. |
16 // To use this class: | 15 // To use this class: |
17 // 1. Create a new xib that contains a window. Change the window's class to | 16 // 1. Create a new xib that contains a window. Change the window's class to |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 76 |
78 @end | 77 @end |
79 | 78 |
80 // Methods for use by subclasses. | 79 // Methods for use by subclasses. |
81 @interface BaseBubbleController (Protected) | 80 @interface BaseBubbleController (Protected) |
82 // Registers event taps *after* the window is shown so that the bubble is | 81 // Registers event taps *after* the window is shown so that the bubble is |
83 // dismissed when it resigns key. This only needs to be called if | 82 // dismissed when it resigns key. This only needs to be called if |
84 // |-showWindow:| is overriden and does not call super. Noop on OSes <10.7. | 83 // |-showWindow:| is overriden and does not call super. Noop on OSes <10.7. |
85 - (void)registerKeyStateEventTap; | 84 - (void)registerKeyStateEventTap; |
86 @end | 85 @end |
OLD | NEW |