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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 314 |
315 // Shows or hides the docked web inspector depending on |contents|'s state. | 315 // Shows or hides the docked web inspector depending on |contents|'s state. |
316 - (void)updateDevToolsForContents:(content::WebContents*)contents; | 316 - (void)updateDevToolsForContents:(content::WebContents*)contents; |
317 | 317 |
318 // Gets the current theme provider. | 318 // Gets the current theme provider. |
319 - (ui::ThemeProvider*)themeProvider; | 319 - (ui::ThemeProvider*)themeProvider; |
320 | 320 |
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 // Returns the pattern phase for |alignment|. If the window does not have a tab |
325 - (NSPoint)themePatternPhase; | 325 // strip, the phase for THEME_PATTERN_ALIGN_WITH_FRAME is always returned. |
| 326 - (NSPoint)themePatternPhaseForAlignment:(ThemePatternAlignment)alignment; |
326 | 327 |
327 // Return the point to which a bubble window's arrow should point, in window | 328 // Return the point to which a bubble window's arrow should point, in window |
328 // coordinates. | 329 // coordinates. |
329 - (NSPoint)bookmarkBubblePoint; | 330 - (NSPoint)bookmarkBubblePoint; |
330 | 331 |
331 // 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 |
332 // 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 |
333 // it would be. | 334 // it would be. |
334 - (NSRect)instantFrame; | 335 - (NSRect)instantFrame; |
335 | 336 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; | 498 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; |
498 | 499 |
499 // 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 |
500 // positioned relative to. | 501 // positioned relative to. |
501 - (NSRect)omniboxPopupAnchorRect; | 502 - (NSRect)omniboxPopupAnchorRect; |
502 | 503 |
503 @end // @interface BrowserWindowController (TestingAPI) | 504 @end // @interface BrowserWindowController (TestingAPI) |
504 | 505 |
505 | 506 |
506 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 507 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |