| 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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 | 304 |
| 305 // Shows or hides the docked web inspector depending on |contents|'s state. | 305 // Shows or hides the docked web inspector depending on |contents|'s state. |
| 306 - (void)updateDevToolsForContents:(content::WebContents*)contents; | 306 - (void)updateDevToolsForContents:(content::WebContents*)contents; |
| 307 | 307 |
| 308 // Gets the current theme provider. | 308 // Gets the current theme provider. |
| 309 - (ui::ThemeProvider*)themeProvider; | 309 - (ui::ThemeProvider*)themeProvider; |
| 310 | 310 |
| 311 // Gets the window style. | 311 // Gets the window style. |
| 312 - (ThemedWindowStyle)themedWindowStyle; | 312 - (ThemedWindowStyle)themedWindowStyle; |
| 313 | 313 |
| 314 // Gets the pattern phase for the window. | 314 // Returns the pattern phase for |alignment|. If the window does not have a tab |
| 315 - (NSPoint)themePatternPhase; | 315 // strip, the phase for THEME_PATTERN_ALIGN_WITH_FRAME is always returned. |
| 316 - (NSPoint)themePatternPhaseForAlignment:(ThemePatternAlignment)alignment; |
| 316 | 317 |
| 317 // 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 |
| 318 // coordinates. | 319 // coordinates. |
| 319 - (NSPoint)bookmarkBubblePoint; | 320 - (NSPoint)bookmarkBubblePoint; |
| 320 | 321 |
| 321 // Returns the frame, in Cocoa (unflipped) screen coordinates, of the area where | 322 // Returns the frame, in Cocoa (unflipped) screen coordinates, of the area where |
| 322 // Instant results are. If Instant is not showing, returns the frame of where | 323 // Instant results are. If Instant is not showing, returns the frame of where |
| 323 // it would be. | 324 // it would be. |
| 324 - (NSRect)instantFrame; | 325 - (NSRect)instantFrame; |
| 325 | 326 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; | 488 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; |
| 488 | 489 |
| 489 // Gets the rect, in window base coordinates, that the omnibox popup should be | 490 // Gets the rect, in window base coordinates, that the omnibox popup should be |
| 490 // positioned relative to. | 491 // positioned relative to. |
| 491 - (NSRect)omniboxPopupAnchorRect; | 492 - (NSRect)omniboxPopupAnchorRect; |
| 492 | 493 |
| 493 @end // @interface BrowserWindowController (TestingAPI) | 494 @end // @interface BrowserWindowController (TestingAPI) |
| 494 | 495 |
| 495 | 496 |
| 496 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 497 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |