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

Side by Side Diff: chrome/browser/ui/cocoa/tabs/tab_strip_controller.h

Issue 420413002: Ensure dialogs are centered on browser windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test works Created 6 years, 4 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
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 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 @end 251 @end
252 252
253 @interface TabStripController(TestingAPI) 253 @interface TabStripController(TestingAPI)
254 - (void)setTabTitle:(TabController*)tab 254 - (void)setTabTitle:(TabController*)tab
255 withContents:(content::WebContents*)contents; 255 withContents:(content::WebContents*)contents;
256 @end 256 @end
257 257
258 // Returns the parent view to use when showing a sheet for a given web contents. 258 // Returns the parent view to use when showing a sheet for a given web contents.
259 NSView* GetSheetParentViewForWebContents(content::WebContents* web_contents); 259 NSView* GetSheetParentViewForWebContents(content::WebContents* web_contents);
260 260
261 // Returns the bounds to use when showing a sheet for a given parent view. This
262 // returns a rect in window coordinates.
263 NSRect GetSheetParentBoundsForParentView(NSView* view);
264
261 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ 265 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698