| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 Captions, | 100 Captions, |
| 101 // If available, display subtitles track in preferred language, else dis
play captions. | 101 // If available, display subtitles track in preferred language, else dis
play captions. |
| 102 Subtitles | 102 Subtitles |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 // Defines the default for 'passive' field used in the AddEventListenerOptio
ns interface | 105 // Defines the default for 'passive' field used in the AddEventListenerOptio
ns interface |
| 106 // when javascript calls addEventListener. | 106 // when javascript calls addEventListener. |
| 107 enum class PassiveEventListenerDefault { | 107 enum class PassiveEventListenerDefault { |
| 108 False, // Default of false. | 108 False, // Default of false. |
| 109 True, // Default of true. | 109 True, // Default of true. |
| 110 DocumentTrue, // Default of true for document level elements, false othe
rwise. | |
| 111 ForceAllTrue // Force all values to be true even when specified. | 110 ForceAllTrue // Force all values to be true even when specified. |
| 112 }; | 111 }; |
| 113 | 112 |
| 114 // Sets value of a setting by its string identifier from Settings.in and | 113 // Sets value of a setting by its string identifier from Settings.in and |
| 115 // string representation of value. An enum's string representation is the | 114 // string representation of value. An enum's string representation is the |
| 116 // string representation of the integer value of the enum. | 115 // string representation of the integer value of the enum. |
| 117 virtual void setFromStrings(const WebString& name, const WebString& value) =
0; | 116 virtual void setFromStrings(const WebString& name, const WebString& value) =
0; |
| 118 | 117 |
| 119 virtual bool mainFrameResizesAreOrientationChanges() const = 0; | 118 virtual bool mainFrameResizesAreOrientationChanges() const = 0; |
| 120 virtual bool shrinksViewportContentToFit() const = 0; | 119 virtual bool shrinksViewportContentToFit() const = 0; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 virtual void setWideViewportQuirkEnabled(bool) = 0; | 280 virtual void setWideViewportQuirkEnabled(bool) = 0; |
| 282 virtual void setXSSAuditorEnabled(bool) = 0; | 281 virtual void setXSSAuditorEnabled(bool) = 0; |
| 283 | 282 |
| 284 protected: | 283 protected: |
| 285 ~WebSettings() { } | 284 ~WebSettings() { } |
| 286 }; | 285 }; |
| 287 | 286 |
| 288 } // namespace blink | 287 } // namespace blink |
| 289 | 288 |
| 290 #endif | 289 #endif |
| OLD | NEW |