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

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

Issue 1118613002: Hook up Android closed captions 'enabled' setting to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 // FIXME: This does not belong here. 63 // FIXME: This does not belong here.
64 static void setMockScrollbarsEnabled(bool flag); 64 static void setMockScrollbarsEnabled(bool flag);
65 static bool mockScrollbarsEnabled(); 65 static bool mockScrollbarsEnabled();
66 66
67 // FIXME: naming_utilities.py isn't smart enough to handle OpenGL yet. 67 // FIXME: naming_utilities.py isn't smart enough to handle OpenGL yet.
68 // It could handle "GL", but that seems a bit overly broad. 68 // It could handle "GL", but that seems a bit overly broad.
69 void setOpenGLMultisamplingEnabled(bool flag); 69 void setOpenGLMultisamplingEnabled(bool flag);
70 bool openGLMultisamplingEnabled() { return m_openGLMultisamplingEnabled; } 70 bool openGLMultisamplingEnabled() { return m_openGLMultisamplingEnabled; }
71 71
72 void setTextTracksEnabled(bool);
tkent 2015/04/29 23:58:44 No need to add manually-written functions. Add the
srivats 2015/05/01 23:03:31 Done.
73 bool textTracksEnabled() const { return m_textTracksEnabled; }
74
72 void setDelegate(SettingsDelegate*); 75 void setDelegate(SettingsDelegate*);
73 76
74 private: 77 private:
75 Settings(); 78 Settings();
76 79
77 void invalidate(SettingsDelegate::ChangeType); 80 void invalidate(SettingsDelegate::ChangeType);
78 81
79 SettingsDelegate* m_delegate; 82 SettingsDelegate* m_delegate;
80 83
81 GenericFontFamilySettings m_genericFontFamilySettings; 84 GenericFontFamilySettings m_genericFontFamilySettings;
82 bool m_openGLMultisamplingEnabled : 1; 85 bool m_openGLMultisamplingEnabled : 1;
83 IntSize m_textAutosizingWindowSizeOverride; 86 IntSize m_textAutosizingWindowSizeOverride;
84 bool m_textAutosizingEnabled : 1; 87 bool m_textAutosizingEnabled : 1;
88 bool m_textTracksEnabled : 1;
85 89
86 SETTINGS_MEMBER_VARIABLES 90 SETTINGS_MEMBER_VARIABLES
87 }; 91 };
88 92
89 } // namespace blink 93 } // namespace blink
90 94
91 #endif // Settings_h 95 #endif // Settings_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698