| 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 // Returns the pattern phase for |alignment|. If the window does not have a tab | 314 // Returns the position in the coordinates of the root view |
| 315 // strip, the phase for THEME_PATTERN_ALIGN_WITH_FRAME is always returned. | 315 // ([[self contentView] superview]) that the top left of a theme image with |
| 316 - (NSPoint)themePatternPhaseForAlignment:(ThemePatternAlignment)alignment; | 316 // |alignment| should be painted at. If the window does not have a tab strip, |
| 317 // the offset for THEME_IMAGE_ALIGN_WITH_FRAME is always returned. The result of |
| 318 // this method can be used in conjunction with |
| 319 // [NSGraphicsContext cr_setPatternPhase:] to set the offset of pattern colors. |
| 320 - (NSPoint)themeImagePositionForAlignment:(ThemeImageAlignment)alignment; |
| 317 | 321 |
| 318 // Return the point to which a bubble window's arrow should point, in window | 322 // Return the point to which a bubble window's arrow should point, in window |
| 319 // coordinates. | 323 // coordinates. |
| 320 - (NSPoint)bookmarkBubblePoint; | 324 - (NSPoint)bookmarkBubblePoint; |
| 321 | 325 |
| 322 // Returns the frame, in Cocoa (unflipped) screen coordinates, of the area where | 326 // Returns the frame, in Cocoa (unflipped) screen coordinates, of the area where |
| 323 // Instant results are. If Instant is not showing, returns the frame of where | 327 // Instant results are. If Instant is not showing, returns the frame of where |
| 324 // it would be. | 328 // it would be. |
| 325 - (NSRect)instantFrame; | 329 - (NSRect)instantFrame; |
| 326 | 330 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; | 498 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; |
| 495 | 499 |
| 496 // Gets the rect, in window base coordinates, that the omnibox popup should be | 500 // Gets the rect, in window base coordinates, that the omnibox popup should be |
| 497 // positioned relative to. | 501 // positioned relative to. |
| 498 - (NSRect)omniboxPopupAnchorRect; | 502 - (NSRect)omniboxPopupAnchorRect; |
| 499 | 503 |
| 500 @end // @interface BrowserWindowController (TestingAPI) | 504 @end // @interface BrowserWindowController (TestingAPI) |
| 501 | 505 |
| 502 | 506 |
| 503 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 507 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |