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

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

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/platform/mac/ScrollElasticityControllerTest.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 14 matching lines...) Expand all
25 25
26 #ifndef ThemeMac_h 26 #ifndef ThemeMac_h
27 #define ThemeMac_h 27 #define ThemeMac_h
28 28
29 #include "platform/Theme.h" 29 #include "platform/Theme.h"
30 30
31 @interface NSFont(WebCoreTheme) 31 @interface NSFont(WebCoreTheme)
32 - (NSString*)webCoreFamilyName; 32 - (NSString*)webCoreFamilyName;
33 @end 33 @end
34 34
35 namespace WebCore { 35 namespace blink {
36 36
37 class ThemeMac : public Theme { 37 class ThemeMac : public Theme {
38 public: 38 public:
39 ThemeMac() { } 39 ThemeMac() { }
40 virtual ~ThemeMac() { } 40 virtual ~ThemeMac() { }
41 41
42 virtual int baselinePositionAdjustment(ControlPart) const; 42 virtual int baselinePositionAdjustment(ControlPart) const;
43 43
44 virtual FontDescription controlFont(ControlPart, const FontDescription&, flo at zoomFactor) const; 44 virtual FontDescription controlFont(ControlPart, const FontDescription&, flo at zoomFactor) const;
45 45
46 virtual LengthSize controlSize(ControlPart, const FontDescription&, const Le ngthSize&, float zoomFactor) const; 46 virtual LengthSize controlSize(ControlPart, const FontDescription&, const Le ngthSize&, float zoomFactor) const;
47 virtual LengthSize minimumControlSize(ControlPart, const FontDescription&, f loat zoomFactor) const; 47 virtual LengthSize minimumControlSize(ControlPart, const FontDescription&, f loat zoomFactor) const;
48 48
49 virtual LengthBox controlPadding(ControlPart, const FontDescription&, const LengthBox& zoomedBox, float zoomFactor) const; 49 virtual LengthBox controlPadding(ControlPart, const FontDescription&, const LengthBox& zoomedBox, float zoomFactor) const;
50 virtual LengthBox controlBorder(ControlPart, const FontDescription&, const L engthBox& zoomedBox, float zoomFactor) const; 50 virtual LengthBox controlBorder(ControlPart, const FontDescription&, const L engthBox& zoomedBox, float zoomFactor) const;
51 51
52 virtual bool controlRequiresPreWhiteSpace(ControlPart part) const { return p art == PushButtonPart; } 52 virtual bool controlRequiresPreWhiteSpace(ControlPart part) const { return p art == PushButtonPart; }
53 53
54 virtual void paint(ControlPart, ControlStates, GraphicsContext*, const IntRe ct&, float zoomFactor, ScrollView*) const; 54 virtual void paint(ControlPart, ControlStates, GraphicsContext*, const IntRe ct&, float zoomFactor, ScrollView*) const;
55 virtual void inflateControlPaintRect(ControlPart, ControlStates, IntRect&, f loat zoomFactor) const; 55 virtual void inflateControlPaintRect(ControlPart, ControlStates, IntRect&, f loat zoomFactor) const;
56 56
57 // FIXME: Once RenderThemeMac is converted over to use Theme then this can b e internal to ThemeMac. 57 // FIXME: Once RenderThemeMac is converted over to use Theme then this can b e internal to ThemeMac.
58 static NSView* ensuredView(ScrollView*); 58 static NSView* ensuredView(ScrollView*);
59 static void setFocusRingClipRect(const FloatRect&); 59 static void setFocusRingClipRect(const FloatRect&);
60 }; 60 };
61 61
62 } // namespace WebCore 62 } // namespace blink
63 63
64 #endif // ThemeMac_h 64 #endif // ThemeMac_h
OLDNEW
« no previous file with comments | « Source/platform/mac/ScrollElasticityControllerTest.mm ('k') | Source/platform/mac/ThemeMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698