| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // If available, display subtitles track in preferred language, else dis
play captions. | 106 // If available, display subtitles track in preferred language, else dis
play captions. |
| 107 Subtitles | 107 Subtitles |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 // Sets value of a setting by its string identifier from Settings.in and | 110 // Sets value of a setting by its string identifier from Settings.in and |
| 111 // string representation of value. An enum's string representation is the | 111 // string representation of value. An enum's string representation is the |
| 112 // string representation of the integer value of the enum. | 112 // string representation of the integer value of the enum. |
| 113 virtual void setFromStrings(const WebString& name, const WebString& value) =
0; | 113 virtual void setFromStrings(const WebString& name, const WebString& value) =
0; |
| 114 | 114 |
| 115 virtual bool mainFrameResizesAreOrientationChanges() const = 0; | 115 virtual bool mainFrameResizesAreOrientationChanges() const = 0; |
| 116 virtual int availablePointerTypes() const = 0; | |
| 117 virtual PointerType primaryPointerType() const = 0; | |
| 118 virtual int availableHoverTypes() const = 0; | |
| 119 virtual HoverType primaryHoverType() const = 0; | |
| 120 virtual bool shrinksViewportContentToFit() const = 0; | 116 virtual bool shrinksViewportContentToFit() const = 0; |
| 121 virtual bool viewportEnabled() const = 0; | 117 virtual bool viewportEnabled() const = 0; |
| 122 virtual void setAccelerated2dCanvasEnabled(bool) = 0; | 118 virtual void setAccelerated2dCanvasEnabled(bool) = 0; |
| 123 virtual void setAccelerated2dCanvasMSAASampleCount(int) = 0; | 119 virtual void setAccelerated2dCanvasMSAASampleCount(int) = 0; |
| 124 virtual void setAcceleratedCompositingEnabled(bool) = 0; | 120 virtual void setAcceleratedCompositingEnabled(bool) = 0; |
| 125 virtual void setPreferCompositingToLCDTextEnabled(bool) = 0; | 121 virtual void setPreferCompositingToLCDTextEnabled(bool) = 0; |
| 126 // Not implemented yet, see http://crbug.com/178119 | 122 // Not implemented yet, see http://crbug.com/178119 |
| 127 virtual void setAcceleratedCompositingForTransitionEnabled(bool) { } | 123 virtual void setAcceleratedCompositingForTransitionEnabled(bool) { } |
| 128 // If set to true, allows frames with an https origin to display passive | 124 // If set to true, allows frames with an https origin to display passive |
| 129 // contents at an insecure URL. Otherwise, disallows it. The | 125 // contents at an insecure URL. Otherwise, disallows it. The |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 virtual void setWideViewportQuirkEnabled(bool) = 0; | 275 virtual void setWideViewportQuirkEnabled(bool) = 0; |
| 280 virtual void setXSSAuditorEnabled(bool) = 0; | 276 virtual void setXSSAuditorEnabled(bool) = 0; |
| 281 | 277 |
| 282 protected: | 278 protected: |
| 283 ~WebSettings() { } | 279 ~WebSettings() { } |
| 284 }; | 280 }; |
| 285 | 281 |
| 286 } // namespace blink | 282 } // namespace blink |
| 287 | 283 |
| 288 #endif | 284 #endif |
| OLD | NEW |