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

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

Issue 19918002: Refactor [FramedBrowserWindow drawWindowThemeInDirtyRect:] to use themeImagePositionForAlignment: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 4 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 | Annotate | Revision Log
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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Called when the Add Search Engine dialog is closed. 326 // Called when the Add Search Engine dialog is closed.
323 - (void)sheetDidEnd:(NSWindow*)sheet 327 - (void)sheetDidEnd:(NSWindow*)sheet
324 returnCode:(NSInteger)code 328 returnCode:(NSInteger)code
325 context:(void*)context; 329 context:(void*)context;
326 330
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; 493 - (FullscreenExitBubbleController*)fullscreenExitBubbleController;
490 494
491 // Gets the rect, in window base coordinates, that the omnibox popup should be 495 // Gets the rect, in window base coordinates, that the omnibox popup should be
492 // positioned relative to. 496 // positioned relative to.
493 - (NSRect)omniboxPopupAnchorRect; 497 - (NSRect)omniboxPopupAnchorRect;
494 498
495 @end // @interface BrowserWindowController (TestingAPI) 499 @end // @interface BrowserWindowController (TestingAPI)
496 500
497 501
498 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 502 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.mm ('k') | chrome/browser/ui/cocoa/browser_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698