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 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 | 8 |
9 @class InfoBubbleView; | 9 @class InfoBubbleView; |
10 class TabStripModelObserverBridge; | 10 class TabStripModelObserverBridge; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 offset:(NSPoint)offset; | 76 offset:(NSPoint)offset; |
77 | 77 |
78 | 78 |
79 // For subclasses that do not load from a XIB, this will simply set the instance | 79 // For subclasses that do not load from a XIB, this will simply set the instance |
80 // variables appropriately. This will also replace the |-[self window]|'s | 80 // variables appropriately. This will also replace the |-[self window]|'s |
81 // contentView with an instance of InfoBubbleView. | 81 // contentView with an instance of InfoBubbleView. |
82 - (id)initWithWindow:(NSWindow*)theWindow | 82 - (id)initWithWindow:(NSWindow*)theWindow |
83 parentWindow:(NSWindow*)parentWindow | 83 parentWindow:(NSWindow*)parentWindow |
84 anchoredAt:(NSPoint)anchoredAt; | 84 anchoredAt:(NSPoint)anchoredAt; |
85 | 85 |
86 // Creates an autoreleased separator view with a given frame. The height of the | 86 // Creates an autoreleased horizontal separator view with a given frame. The |
87 // frame is ignored. | 87 // height of the frame is ignored. |
88 - (NSBox*)separatorWithFrame:(NSRect)frame; | 88 - (NSBox*)horizontalSeparatorWithFrame:(NSRect)frame; |
| 89 |
| 90 // Creates an autoreleased vertical separator view with a given frame. The |
| 91 // width of frame is ignored. |
| 92 - (NSBox*)verticalSeparatorWithFrame:(NSRect)frame; |
| 93 |
89 | 94 |
90 @end | 95 @end |
91 | 96 |
92 // Methods for use by subclasses. | 97 // Methods for use by subclasses. |
93 @interface BaseBubbleController (Protected) | 98 @interface BaseBubbleController (Protected) |
94 // Registers event taps *after* the window is shown so that the bubble is | 99 // Registers event taps *after* the window is shown so that the bubble is |
95 // dismissed when it resigns key. This only needs to be called if | 100 // dismissed when it resigns key. This only needs to be called if |
96 // |-showWindow:| is overriden and does not call super. Noop on OSes <10.7. | 101 // |-showWindow:| is overriden and does not call super. Noop on OSes <10.7. |
97 - (void)registerKeyStateEventTap; | 102 - (void)registerKeyStateEventTap; |
98 @end | 103 @end |
OLD | NEW |