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

Side by Side Diff: Source/platform/mac/ThemeMac.h

Issue 368003002: Check if drawFocusRingMaskWithFrame:inView: exists when drawing focus ring (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/core/paint/ThemePainterMac.mm ('k') | Source/platform/mac/ThemeMac.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 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 RightMargin = 1, 60 RightMargin = 1,
61 BottomMargin = 2, 61 BottomMargin = 2,
62 LeftMargin = 3 62 LeftMargin = 3
63 }; 63 };
64 static PLATFORM_EXPORT IntRect inflateRect(const IntRect&, const IntSize&, c onst int* margins, float zoomLevel = 1.0f); 64 static PLATFORM_EXPORT IntRect inflateRect(const IntRect&, const IntSize&, c onst int* margins, float zoomLevel = 1.0f);
65 65
66 // Inflate an IntRect to account for any bleeding that would happen due to a nti-aliasing. 66 // Inflate an IntRect to account for any bleeding that would happen due to a nti-aliasing.
67 static PLATFORM_EXPORT IntRect inflateRectForAA(const IntRect&); 67 static PLATFORM_EXPORT IntRect inflateRectForAA(const IntRect&);
68 68
69 // Inflate an IntRect to account for its focus ring. This is only used when 69 // Inflate an IntRect to account for its focus ring. This is only used when
70 // BUTTON_CELL_DRAW_WITH_FRAME_DRAWS_FOCUS_RING is defined (otherwise, the f ocus ring's 70 // drawWithFrameDrawsFocusRing() returns true (otherwise, the focus ring's
71 // bounds could be accurately computed with -[NSCell focusRingMaskBoundsForF rame:inView:]). 71 // bounds could be accurately computed with -[NSCell focusRingMaskBoundsForF rame:inView:]).
72 static PLATFORM_EXPORT IntRect inflateRectForFocusRing(const IntRect&); 72 static PLATFORM_EXPORT IntRect inflateRectForFocusRing(const IntRect&);
73
74 static PLATFORM_EXPORT bool drawWithFrameDrawsFocusRing();
73 }; 75 };
74 76
75 } // namespace blink 77 } // namespace blink
76 78
77 #endif // ThemeMac_h 79 #endif // ThemeMac_h
OLDNEW
« no previous file with comments | « Source/core/paint/ThemePainterMac.mm ('k') | Source/platform/mac/ThemeMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698