| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 // 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 |
| 114 // string representation of value. An enum's string representation is the | 114 // string representation of value. An enum's string representation is the |
| 115 // string representation of the integer value of the enum. | 115 // string representation of the integer value of the enum. |
| 116 virtual void setFromStrings(const WebString& name, const WebString& value) =
0; | 116 virtual void setFromStrings(const WebString& name, const WebString& value) =
0; |
| 117 | 117 |
| 118 virtual bool mainFrameResizesAreOrientationChanges() const = 0; | 118 virtual bool mainFrameResizesAreOrientationChanges() const = 0; |
| 119 virtual bool shrinksViewportContentToFit() const = 0; | 119 virtual bool shrinksViewportContentToFit() const = 0; |
| 120 virtual bool viewportEnabled() const = 0; | 120 virtual bool viewportEnabled() const = 0; |
| 121 virtual void setAccelerated2dCanvasEnabled(bool) = 0; | |
| 122 virtual void setAccelerated2dCanvasMSAASampleCount(int) = 0; | 121 virtual void setAccelerated2dCanvasMSAASampleCount(int) = 0; |
| 123 virtual void setAcceleratedCompositingEnabled(bool) = 0; | 122 virtual void setAcceleratedCompositingEnabled(bool) = 0; |
| 124 virtual void setPreferCompositingToLCDTextEnabled(bool) = 0; | 123 virtual void setPreferCompositingToLCDTextEnabled(bool) = 0; |
| 125 // Not implemented yet, see http://crbug.com/178119 | 124 // Not implemented yet, see http://crbug.com/178119 |
| 126 virtual void setAcceleratedCompositingForTransitionEnabled(bool) { } | 125 virtual void setAcceleratedCompositingForTransitionEnabled(bool) { } |
| 127 // If set to true, allows frames with an https origin to display passive | 126 // If set to true, allows frames with an https origin to display passive |
| 128 // contents at an insecure URL. Otherwise, disallows it. The | 127 // contents at an insecure URL. Otherwise, disallows it. The |
| 129 // FrameLoaderClient set to the frame may override the value set by this | 128 // FrameLoaderClient set to the frame may override the value set by this |
| 130 // method. | 129 // method. |
| 131 virtual void setAccessibilityEnabled(bool) = 0; | 130 virtual void setAccessibilityEnabled(bool) = 0; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 virtual void setWideViewportQuirkEnabled(bool) = 0; | 279 virtual void setWideViewportQuirkEnabled(bool) = 0; |
| 281 virtual void setXSSAuditorEnabled(bool) = 0; | 280 virtual void setXSSAuditorEnabled(bool) = 0; |
| 282 | 281 |
| 283 protected: | 282 protected: |
| 284 ~WebSettings() { } | 283 ~WebSettings() { } |
| 285 }; | 284 }; |
| 286 | 285 |
| 287 } // namespace blink | 286 } // namespace blink |
| 288 | 287 |
| 289 #endif | 288 #endif |
| OLD | NEW |