| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 enum HoverType { | 71 enum HoverType { |
| 72 HoverTypeNone = 1, | 72 HoverTypeNone = 1, |
| 73 // Indicates that the primary pointing system can hover, but it requires | 73 // Indicates that the primary pointing system can hover, but it requires |
| 74 // a significant action on the user’s part. e.g. hover on “long press”. | 74 // a significant action on the user’s part. e.g. hover on “long press”. |
| 75 HoverTypeOnDemand = 2, | 75 HoverTypeOnDemand = 2, |
| 76 HoverTypeHover = 4 | 76 HoverTypeHover = 4 |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 virtual bool compositorIsEnabled() const = 0; | |
| 80 virtual bool mainFrameResizesAreOrientationChanges() const = 0; | 79 virtual bool mainFrameResizesAreOrientationChanges() const = 0; |
| 81 virtual int availablePointerTypes() const = 0; | 80 virtual int availablePointerTypes() const = 0; |
| 82 virtual PointerType primaryPointerType() const = 0; | 81 virtual PointerType primaryPointerType() const = 0; |
| 83 virtual int availableHoverTypes() const = 0; | 82 virtual int availableHoverTypes() const = 0; |
| 84 virtual HoverType primaryHoverType() const = 0; | 83 virtual HoverType primaryHoverType() const = 0; |
| 85 virtual bool shrinksViewportContentToFit() const = 0; | 84 virtual bool shrinksViewportContentToFit() const = 0; |
| 86 virtual void setAccelerated2dCanvasEnabled(bool) = 0; | 85 virtual void setAccelerated2dCanvasEnabled(bool) = 0; |
| 87 virtual void setAccelerated2dCanvasMSAASampleCount(int) = 0; | 86 virtual void setAccelerated2dCanvasMSAASampleCount(int) = 0; |
| 88 virtual void setPreferCompositingToLCDTextEnabled(bool) = 0; | 87 virtual void setPreferCompositingToLCDTextEnabled(bool) = 0; |
| 89 // Not implemented yet, see http://crbug.com/178119 | 88 // Not implemented yet, see http://crbug.com/178119 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 virtual void setV8CacheOptions(V8CacheOptions) = 0; | 147 virtual void setV8CacheOptions(V8CacheOptions) = 0; |
| 149 virtual void setWebGLErrorsToConsoleEnabled(bool) = 0; | 148 virtual void setWebGLErrorsToConsoleEnabled(bool) = 0; |
| 150 | 149 |
| 151 protected: | 150 protected: |
| 152 ~WebSettings() { } | 151 ~WebSettings() { } |
| 153 }; | 152 }; |
| 154 | 153 |
| 155 } // namespace blink | 154 } // namespace blink |
| 156 | 155 |
| 157 #endif // SKY_ENGINE_PUBLIC_WEB_WEBSETTINGS_H_ | 156 #endif // SKY_ENGINE_PUBLIC_WEB_WEBSETTINGS_H_ |
| OLD | NEW |