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

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

Issue 871423004: Mac: Clean up outdated use of NSThemeFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@themed-drawing
Patch Set: No need to floor Created 5 years, 10 months 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/browser_window_controller_private.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) 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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 346
347 // Shows or hides the docked web inspector depending on |contents|'s state. 347 // Shows or hides the docked web inspector depending on |contents|'s state.
348 - (void)updateDevToolsForContents:(content::WebContents*)contents; 348 - (void)updateDevToolsForContents:(content::WebContents*)contents;
349 349
350 // Gets the current theme provider. 350 // Gets the current theme provider.
351 - (ui::ThemeProvider*)themeProvider; 351 - (ui::ThemeProvider*)themeProvider;
352 352
353 // Gets the window style. 353 // Gets the window style.
354 - (ThemedWindowStyle)themedWindowStyle; 354 - (ThemedWindowStyle)themedWindowStyle;
355 355
356 // Returns the position in the coordinates of the root view 356 // Returns the position in window coordinates that the top left of a theme
357 // ([[self contentView] superview]) that the top left of a theme image with 357 // image with |alignment| should be painted at. If the window does not have a
358 // |alignment| should be painted at. If the window does not have a tab strip, 358 // tab strip, the offset for THEME_IMAGE_ALIGN_WITH_FRAME is always returned.
359 // the offset for THEME_IMAGE_ALIGN_WITH_FRAME is always returned. The result of 359 // The result of this method can be used in conjunction with
360 // this method can be used in conjunction with
361 // [NSGraphicsContext cr_setPatternPhase:] to set the offset of pattern colors. 360 // [NSGraphicsContext cr_setPatternPhase:] to set the offset of pattern colors.
362 - (NSPoint)themeImagePositionForAlignment:(ThemeImageAlignment)alignment; 361 - (NSPoint)themeImagePositionForAlignment:(ThemeImageAlignment)alignment;
363 362
364 // Return the point to which a bubble window's arrow should point, in window 363 // Return the point to which a bubble window's arrow should point, in window
365 // coordinates. 364 // coordinates.
366 - (NSPoint)bookmarkBubblePoint; 365 - (NSPoint)bookmarkBubblePoint;
367 366
368 // Called when the Add Search Engine dialog is closed. 367 // Called when the Add Search Engine dialog is closed.
369 - (void)sheetDidEnd:(NSWindow*)sheet 368 - (void)sheetDidEnd:(NSWindow*)sheet
370 returnCode:(NSInteger)code 369 returnCode:(NSInteger)code
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 // positioned relative to. 610 // positioned relative to.
612 - (NSRect)omniboxPopupAnchorRect; 611 - (NSRect)omniboxPopupAnchorRect;
613 612
614 // Force a layout of info bars. 613 // Force a layout of info bars.
615 - (void)layoutInfoBars; 614 - (void)layoutInfoBars;
616 615
617 @end // @interface BrowserWindowController (TestingAPI) 616 @end // @interface BrowserWindowController (TestingAPI)
618 617
619 618
620 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 619 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/browser_window_controller_private.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698