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 #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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 // Gets the window style. | 321 // Gets the window style. |
322 - (ThemedWindowStyle)themedWindowStyle; | 322 - (ThemedWindowStyle)themedWindowStyle; |
323 | 323 |
324 // Gets the pattern phase for the window. | 324 // Gets the pattern phase for the window. |
325 - (NSPoint)themePatternPhase; | 325 - (NSPoint)themePatternPhase; |
326 | 326 |
327 // Return the point to which a bubble window's arrow should point, in window | 327 // Return the point to which a bubble window's arrow should point, in window |
328 // coordinates. | 328 // coordinates. |
329 - (NSPoint)bookmarkBubblePoint; | 329 - (NSPoint)bookmarkBubblePoint; |
330 | 330 |
331 // Shows or hides the Instant overlay contents. | |
332 - (void)commitInstant; | |
333 | |
334 // Returns the frame, in Cocoa (unflipped) screen coordinates, of the area where | 331 // Returns the frame, in Cocoa (unflipped) screen coordinates, of the area where |
335 // Instant results are. If Instant is not showing, returns the frame of where | 332 // Instant results are. If Instant is not showing, returns the frame of where |
336 // it would be. | 333 // it would be. |
337 - (NSRect)instantFrame; | 334 - (NSRect)instantFrame; |
338 | 335 |
339 // Called when the Add Search Engine dialog is closed. | 336 // Called when the Add Search Engine dialog is closed. |
340 - (void)sheetDidEnd:(NSWindow*)sheet | 337 - (void)sheetDidEnd:(NSWindow*)sheet |
341 returnCode:(NSInteger)code | 338 returnCode:(NSInteger)code |
342 context:(void*)context; | 339 context:(void*)context; |
343 | 340 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; | 495 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; |
499 | 496 |
500 // Gets the rect, in window base coordinates, that the omnibox popup should be | 497 // Gets the rect, in window base coordinates, that the omnibox popup should be |
501 // positioned relative to. | 498 // positioned relative to. |
502 - (NSRect)omniboxPopupAnchorRect; | 499 - (NSRect)omniboxPopupAnchorRect; |
503 | 500 |
504 @end // @interface BrowserWindowController (TestingAPI) | 501 @end // @interface BrowserWindowController (TestingAPI) |
505 | 502 |
506 | 503 |
507 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 504 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |