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

Side by Side Diff: Source/core/page/Settings.h

Issue 14840015: Lose/restore WebGL contexts if multisampling blackist status changes at runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Changed to a more generic SettingsChangedObserver Created 7 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights reserved.
3 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 3 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 static bool isDeletedValue(int value) { return value == -3; } 65 static bool isDeletedValue(int value) { return value == -3; }
66 }; 66 };
67 67
68 typedef HashMap<int, AtomicString, DefaultHash<int>::Hash, UScriptCodeHashTr aits> ScriptFontFamilyMap; 68 typedef HashMap<int, AtomicString, DefaultHash<int>::Hash, UScriptCodeHashTr aits> ScriptFontFamilyMap;
69 69
70 class Settings { 70 class Settings {
71 WTF_MAKE_NONCOPYABLE(Settings); WTF_MAKE_FAST_ALLOCATED; 71 WTF_MAKE_NONCOPYABLE(Settings); WTF_MAKE_FAST_ALLOCATED;
72 public: 72 public:
73 static PassOwnPtr<Settings> create(Page*); 73 static PassOwnPtr<Settings> create(Page*);
74 74
75 void settingsChanged() const;
76
75 void setStandardFontFamily(const AtomicString&, UScriptCode = USCRIPT_CO MMON); 77 void setStandardFontFamily(const AtomicString&, UScriptCode = USCRIPT_CO MMON);
76 const AtomicString& standardFontFamily(UScriptCode = USCRIPT_COMMON) con st; 78 const AtomicString& standardFontFamily(UScriptCode = USCRIPT_COMMON) con st;
77 79
78 void setFixedFontFamily(const AtomicString&, UScriptCode = USCRIPT_COMMO N); 80 void setFixedFontFamily(const AtomicString&, UScriptCode = USCRIPT_COMMO N);
79 const AtomicString& fixedFontFamily(UScriptCode = USCRIPT_COMMON) const; 81 const AtomicString& fixedFontFamily(UScriptCode = USCRIPT_COMMON) const;
80 82
81 void setSerifFontFamily(const AtomicString&, UScriptCode = USCRIPT_COMMO N); 83 void setSerifFontFamily(const AtomicString&, UScriptCode = USCRIPT_COMMO N);
82 const AtomicString& serifFontFamily(UScriptCode = USCRIPT_COMMON) const; 84 const AtomicString& serifFontFamily(UScriptCode = USCRIPT_COMMON) const;
83 85
84 void setSansSerifFontFamily(const AtomicString&, UScriptCode = USCRIPT_C OMMON); 86 void setSansSerifFontFamily(const AtomicString&, UScriptCode = USCRIPT_C OMMON);
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 Timer<Settings> m_setImageLoadingSettingsTimer; 201 Timer<Settings> m_setImageLoadingSettingsTimer;
200 void imageLoadingSettingsTimerFired(Timer<Settings>*); 202 void imageLoadingSettingsTimerFired(Timer<Settings>*);
201 203
202 static bool gMockScrollbarsEnabled; 204 static bool gMockScrollbarsEnabled;
203 static bool gUsesOverlayScrollbars; 205 static bool gUsesOverlayScrollbars;
204 }; 206 };
205 207
206 } // namespace WebCore 208 } // namespace WebCore
207 209
208 #endif // Settings_h 210 #endif // Settings_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698