Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Side by Side Diff: chrome/browser/ui/cocoa/base_bubble_controller.h

Issue 323143004: [Mac] Misc fixes for the new avatar bubble (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unbork rebase and fix unittest Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/base_bubble_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/base_bubble_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698