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

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

Issue 5301006: [Mac] Prevent constrained windows (sheets) from opening while instant preview... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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/cocoa/browser_window_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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_
6 #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 6 #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 // A class acting as the Objective-C controller for the Browser 9 // A class acting as the Objective-C controller for the Browser
10 // object. Handles interactions between Cocoa and the cross-platform 10 // object. Handles interactions between Cocoa and the cross-platform
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 // Returns the (lazily created) window sheet controller of this window. Used 228 // Returns the (lazily created) window sheet controller of this window. Used
229 // for the per-tab sheets. 229 // for the per-tab sheets.
230 - (GTMWindowSheetController*)sheetController; 230 - (GTMWindowSheetController*)sheetController;
231 231
232 // Requests that |window| is opened as a per-tab sheet to the current tab. 232 // Requests that |window| is opened as a per-tab sheet to the current tab.
233 - (void)attachConstrainedWindow:(ConstrainedWindowMac*)window; 233 - (void)attachConstrainedWindow:(ConstrainedWindowMac*)window;
234 // Closes the tab sheet |window| and potentially shows the next sheet in the 234 // Closes the tab sheet |window| and potentially shows the next sheet in the
235 // tab's sheet queue. 235 // tab's sheet queue.
236 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; 236 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window;
237 // Returns NO if constrained windows cannot be attached to this window.
238 - (BOOL)canAttachConstrainedWindow;
237 239
238 // Shows or hides the docked web inspector depending on |contents|'s state. 240 // Shows or hides the docked web inspector depending on |contents|'s state.
239 - (void)updateDevToolsForContents:(TabContents*)contents; 241 - (void)updateDevToolsForContents:(TabContents*)contents;
240 242
241 // Displays the active sidebar linked to the |contents| or hides sidebar UI, 243 // Displays the active sidebar linked to the |contents| or hides sidebar UI,
242 // if there's no such sidebar. 244 // if there's no such sidebar.
243 - (void)updateSidebarForContents:(TabContents*)contents; 245 - (void)updateSidebarForContents:(TabContents*)contents;
244 246
245 // Gets the current theme provider. 247 // Gets the current theme provider.
246 - (ThemeProvider*)themeProvider; 248 - (ThemeProvider*)themeProvider;
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 - (void)resetWindowGrowthState; 388 - (void)resetWindowGrowthState;
387 389
388 // Computes by how far in each direction, horizontal and vertical, the 390 // Computes by how far in each direction, horizontal and vertical, the
389 // |source| rect doesn't fit into |target|. 391 // |source| rect doesn't fit into |target|.
390 - (NSSize)overflowFrom:(NSRect)source 392 - (NSSize)overflowFrom:(NSRect)source
391 to:(NSRect)target; 393 to:(NSRect)target;
392 @end // @interface BrowserWindowController(TestingAPI) 394 @end // @interface BrowserWindowController(TestingAPI)
393 395
394 396
395 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 397 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/cocoa/browser_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698