| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef EXTENSIONS_BROWSER_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ |
| 6 #define EXTENSIONS_BROWSER_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ | 6 #define EXTENSIONS_BROWSER_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ |
| 7 | 7 |
| 8 #include "extensions/browser/api/capture_web_contents_function.h" | 8 #include "extensions/browser/api/capture_web_contents_function.h" |
| 9 #include "extensions/browser/api/execute_code_function.h" | 9 #include "extensions/browser/api/execute_code_function.h" |
| 10 #include "extensions/browser/extension_function.h" | 10 #include "extensions/browser/extension_function.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 protected: | 142 protected: |
| 143 ~WebViewInternalSetAllowTransparencyFunction() override; | 143 ~WebViewInternalSetAllowTransparencyFunction() override; |
| 144 | 144 |
| 145 private: | 145 private: |
| 146 bool RunAsyncSafe(WebViewGuest* guest) override; | 146 bool RunAsyncSafe(WebViewGuest* guest) override; |
| 147 | 147 |
| 148 DISALLOW_COPY_AND_ASSIGN(WebViewInternalSetAllowTransparencyFunction); | 148 DISALLOW_COPY_AND_ASSIGN(WebViewInternalSetAllowTransparencyFunction); |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 class WebViewInternalSetAllowScalingFunction |
| 152 : public WebViewInternalExtensionFunction { |
| 153 public: |
| 154 DECLARE_EXTENSION_FUNCTION("webViewInternal.setAllowScaling", |
| 155 WEBVIEWINTERNAL_SETALLOWSCALING); |
| 156 |
| 157 WebViewInternalSetAllowScalingFunction(); |
| 158 |
| 159 protected: |
| 160 ~WebViewInternalSetAllowScalingFunction() override; |
| 161 |
| 162 private: |
| 163 bool RunAsyncSafe(WebViewGuest* guest) override; |
| 164 |
| 165 DISALLOW_COPY_AND_ASSIGN(WebViewInternalSetAllowScalingFunction); |
| 166 }; |
| 167 |
| 151 class WebViewInternalSetZoomFunction : public WebViewInternalExtensionFunction { | 168 class WebViewInternalSetZoomFunction : public WebViewInternalExtensionFunction { |
| 152 public: | 169 public: |
| 153 DECLARE_EXTENSION_FUNCTION("webViewInternal.setZoom", | 170 DECLARE_EXTENSION_FUNCTION("webViewInternal.setZoom", |
| 154 WEBVIEWINTERNAL_SETZOOM); | 171 WEBVIEWINTERNAL_SETZOOM); |
| 155 | 172 |
| 156 WebViewInternalSetZoomFunction(); | 173 WebViewInternalSetZoomFunction(); |
| 157 | 174 |
| 158 protected: | 175 protected: |
| 159 ~WebViewInternalSetZoomFunction() override; | 176 ~WebViewInternalSetZoomFunction() override; |
| 160 | 177 |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 uint32 remove_mask_; | 377 uint32 remove_mask_; |
| 361 // Tracks any data related or parse errors. | 378 // Tracks any data related or parse errors. |
| 362 bool bad_message_; | 379 bool bad_message_; |
| 363 | 380 |
| 364 DISALLOW_COPY_AND_ASSIGN(WebViewInternalClearDataFunction); | 381 DISALLOW_COPY_AND_ASSIGN(WebViewInternalClearDataFunction); |
| 365 }; | 382 }; |
| 366 | 383 |
| 367 } // namespace extensions | 384 } // namespace extensions |
| 368 | 385 |
| 369 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ | 386 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ |
| OLD | NEW |