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

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

Issue 10870094: Constrained window sheet controller (test patch) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename Created 8 years, 3 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_BROWSER_WINDOW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_
7 7
8 // A class acting as the Objective-C controller for the Browser 8 // A class acting as the Objective-C controller for the Browser
9 // object. Handles interactions between Cocoa and the cross-platform 9 // object. Handles interactions between Cocoa and the cross-platform
10 // code. Each window has a single toolbar and, by virtue of being a 10 // code. Each window has a single toolbar and, by virtue of being a
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 - (void)showBookmarkBubbleForURL:(const GURL&)url 293 - (void)showBookmarkBubbleForURL:(const GURL&)url
294 alreadyBookmarked:(BOOL)alreadyBookmarked; 294 alreadyBookmarked:(BOOL)alreadyBookmarked;
295 295
296 // Show the Chrome To Mobile bubble (e.g. user just clicked on the icon) 296 // Show the Chrome To Mobile bubble (e.g. user just clicked on the icon)
297 - (void)showChromeToMobileBubble; 297 - (void)showChromeToMobileBubble;
298 298
299 // Returns the (lazily created) window sheet controller of this window. Used 299 // Returns the (lazily created) window sheet controller of this window. Used
300 // for the per-tab sheets. 300 // for the per-tab sheets.
301 - (GTMWindowSheetController*)sheetController; 301 - (GTMWindowSheetController*)sheetController;
302 302
303 // Requests that |window| is opened as a per-tab sheet to the current tab.
304 - (void)attachConstrainedWindow:(ConstrainedWindowMac*)window;
305 // Closes the tab sheet |window| and potentially shows the next sheet in the
306 // tab's sheet queue.
307 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window;
308 // Returns NO if constrained windows cannot be attached to this window.
309 - (BOOL)canAttachConstrainedWindow;
310
311 // Shows or hides the docked web inspector depending on |contents|'s state. 303 // Shows or hides the docked web inspector depending on |contents|'s state.
312 - (void)updateDevToolsForContents:(content::WebContents*)contents; 304 - (void)updateDevToolsForContents:(content::WebContents*)contents;
313 305
314 // Specifies whether devtools should dock to right. 306 // Specifies whether devtools should dock to right.
315 - (void)setDevToolsDockToRight:(bool)dock_to_right; 307 - (void)setDevToolsDockToRight:(bool)dock_to_right;
316 308
317 // Gets the current theme provider. 309 // Gets the current theme provider.
318 - (ui::ThemeProvider*)themeProvider; 310 - (ui::ThemeProvider*)themeProvider;
319 311
320 // Gets the window style. 312 // Gets the window style.
321 - (ThemedWindowStyle)themedWindowStyle; 313 - (ThemedWindowStyle)themedWindowStyle;
322 314
323 // Gets the pattern phase for the window. 315 // Gets the pattern phase for the window.
324 - (NSPoint)themePatternPhase; 316 - (NSPoint)themePatternPhase;
325 317
326 // Return the point to which a bubble window's arrow should point, in window 318 // Return the point to which a bubble window's arrow should point, in window
327 // coordinates. 319 // coordinates.
328 - (NSPoint)bookmarkBubblePoint; 320 - (NSPoint)bookmarkBubblePoint;
329 321
330 // Return the Chrome To Mobile bubble window's arrow anchor point, in window 322 // Return the Chrome To Mobile bubble window's arrow anchor point, in window
331 // coordinates. 323 // coordinates.
332 - (NSPoint)chromeToMobileBubblePoint; 324 - (NSPoint)chromeToMobileBubblePoint;
333 325
334 // Shows or hides the Instant preview contents. 326 // Shows or hides the Instant preview contents.
335 - (void)showInstant:(content::WebContents*)previewContents; 327 - (void)showInstant:(content::WebContents*)previewContents;
336 - (void)hideInstant; 328 - (void)hideInstant;
337 - (void)commitInstant; 329 - (void)commitInstant;
330 - (BOOL)isShowingInstant;
338 331
339 // Returns the frame, in Cocoa (unflipped) screen coordinates, of the area where 332 // Returns the frame, in Cocoa (unflipped) screen coordinates, of the area where
340 // Instant results are. If Instant is not showing, returns the frame of where 333 // Instant results are. If Instant is not showing, returns the frame of where
341 // it would be. 334 // it would be.
342 - (NSRect)instantFrame; 335 - (NSRect)instantFrame;
343 336
344 // Called when the Add Search Engine dialog is closed. 337 // Called when the Add Search Engine dialog is closed.
345 - (void)sheetDidEnd:(NSWindow*)sheet 338 - (void)sheetDidEnd:(NSWindow*)sheet
346 returnCode:(NSInteger)code 339 returnCode:(NSInteger)code
347 context:(void*)context; 340 context:(void*)context;
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 // |source| rect doesn't fit into |target|. 480 // |source| rect doesn't fit into |target|.
488 - (NSSize)overflowFrom:(NSRect)source 481 - (NSSize)overflowFrom:(NSRect)source
489 to:(NSRect)target; 482 to:(NSRect)target;
490 483
491 // The fullscreen exit bubble controller, or nil if the bubble isn't showing. 484 // The fullscreen exit bubble controller, or nil if the bubble isn't showing.
492 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; 485 - (FullscreenExitBubbleController*)fullscreenExitBubbleController;
493 @end // @interface BrowserWindowController (TestingAPI) 486 @end // @interface BrowserWindowController (TestingAPI)
494 487
495 488
496 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 489 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/ui/cocoa/browser_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698