| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011, 2012 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 class WebSpellCheckClient; | 57 class WebSpellCheckClient; |
| 58 class WebString; | 58 class WebString; |
| 59 class WebPasswordGeneratorClient; | 59 class WebPasswordGeneratorClient; |
| 60 class WebValidationMessageClient; | 60 class WebValidationMessageClient; |
| 61 class WebViewBenchmarkSupport; | 61 class WebViewBenchmarkSupport; |
| 62 class WebViewClient; | 62 class WebViewClient; |
| 63 struct WebActiveWheelFlingParameters; | 63 struct WebActiveWheelFlingParameters; |
| 64 struct WebMediaPlayerAction; | 64 struct WebMediaPlayerAction; |
| 65 struct WebPluginAction; | 65 struct WebPluginAction; |
| 66 struct WebPoint; | 66 struct WebPoint; |
| 67 struct WebWindowFeatures; |
| 67 | 68 |
| 68 class WebView : public WebWidget { | 69 class WebView : public WebWidget { |
| 69 public: | 70 public: |
| 70 WEBKIT_EXPORT static const double textSizeMultiplierRatio; | 71 WEBKIT_EXPORT static const double textSizeMultiplierRatio; |
| 71 WEBKIT_EXPORT static const double minTextSizeMultiplier; | 72 WEBKIT_EXPORT static const double minTextSizeMultiplier; |
| 72 WEBKIT_EXPORT static const double maxTextSizeMultiplier; | 73 WEBKIT_EXPORT static const double maxTextSizeMultiplier; |
| 73 WEBKIT_EXPORT static const float minPageScaleFactor; | 74 WEBKIT_EXPORT static const float minPageScaleFactor; |
| 74 WEBKIT_EXPORT static const float maxPageScaleFactor; | 75 WEBKIT_EXPORT static const float maxPageScaleFactor; |
| 75 | 76 |
| 76 // Controls which frames user content is injected into. | 77 // Controls which frames user content is injected into. |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 virtual void setTabKeyCyclesThroughElements(bool) = 0; | 139 virtual void setTabKeyCyclesThroughElements(bool) = 0; |
| 139 | 140 |
| 140 // Controls the WebView's active state, which may affect the rendering | 141 // Controls the WebView's active state, which may affect the rendering |
| 141 // of elements on the page (i.e., tinting of input elements). | 142 // of elements on the page (i.e., tinting of input elements). |
| 142 virtual bool isActive() const = 0; | 143 virtual bool isActive() const = 0; |
| 143 virtual void setIsActive(bool) = 0; | 144 virtual void setIsActive(bool) = 0; |
| 144 | 145 |
| 145 // Allows disabling domain relaxation. | 146 // Allows disabling domain relaxation. |
| 146 virtual void setDomainRelaxationForbidden(bool, const WebString& scheme) = 0
; | 147 virtual void setDomainRelaxationForbidden(bool, const WebString& scheme) = 0
; |
| 147 | 148 |
| 149 // Allows setting the state of the various bars exposed via BarProp |
| 150 // properties on the window object. The size related fields of |
| 151 // WebWindowFeatures are ignored. |
| 152 virtual void setWindowFeatures(const WebWindowFeatures&) = 0; |
| 153 |
| 148 | 154 |
| 149 // Closing ------------------------------------------------------------- | 155 // Closing ------------------------------------------------------------- |
| 150 | 156 |
| 151 // Runs beforeunload handlers for the current page, returning false if | 157 // Runs beforeunload handlers for the current page, returning false if |
| 152 // any handler suppressed unloading. | 158 // any handler suppressed unloading. |
| 153 virtual bool dispatchBeforeUnloadEvent() = 0; | 159 virtual bool dispatchBeforeUnloadEvent() = 0; |
| 154 | 160 |
| 155 // Runs unload handlers for the current page. | 161 // Runs unload handlers for the current page. |
| 156 virtual void dispatchUnloadEvent() = 0; | 162 virtual void dispatchUnloadEvent() = 0; |
| 157 | 163 |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 | 507 |
| 502 // Testing functionality for TestRunner --------------------------------- | 508 // Testing functionality for TestRunner --------------------------------- |
| 503 | 509 |
| 504 protected: | 510 protected: |
| 505 ~WebView() {} | 511 ~WebView() {} |
| 506 }; | 512 }; |
| 507 | 513 |
| 508 } // namespace WebKit | 514 } // namespace WebKit |
| 509 | 515 |
| 510 #endif | 516 #endif |
| OLD | NEW |