| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 143 | 143 | 
| 144  protected: | 144  protected: | 
| 145   virtual ~WebViewInternalSetNameFunction(); | 145   virtual ~WebViewInternalSetNameFunction(); | 
| 146 | 146 | 
| 147  private: | 147  private: | 
| 148   virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE; | 148   virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE; | 
| 149 | 149 | 
| 150   DISALLOW_COPY_AND_ASSIGN(WebViewInternalSetNameFunction); | 150   DISALLOW_COPY_AND_ASSIGN(WebViewInternalSetNameFunction); | 
| 151 }; | 151 }; | 
| 152 | 152 | 
|  | 153 class WebViewInternalSetAllowTransparencyFunction : | 
|  | 154     public WebViewInternalExtensionFunction { | 
|  | 155  public: | 
|  | 156   DECLARE_EXTENSION_FUNCTION("webViewInternal.setAllowTransparency", | 
|  | 157                              WEBVIEWINTERNAL_SETALLOWTRANSPARENCY); | 
|  | 158 | 
|  | 159   WebViewInternalSetAllowTransparencyFunction(); | 
|  | 160 | 
|  | 161  protected: | 
|  | 162   virtual ~WebViewInternalSetAllowTransparencyFunction(); | 
|  | 163 | 
|  | 164  private: | 
|  | 165   virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE; | 
|  | 166 | 
|  | 167   DISALLOW_COPY_AND_ASSIGN(WebViewInternalSetAllowTransparencyFunction); | 
|  | 168 }; | 
|  | 169 | 
| 153 class WebViewInternalSetZoomFunction : public WebViewInternalExtensionFunction { | 170 class WebViewInternalSetZoomFunction : public WebViewInternalExtensionFunction { | 
| 154  public: | 171  public: | 
| 155   DECLARE_EXTENSION_FUNCTION("webViewInternal.setZoom", | 172   DECLARE_EXTENSION_FUNCTION("webViewInternal.setZoom", | 
| 156                              WEBVIEWINTERNAL_SETZOOM); | 173                              WEBVIEWINTERNAL_SETZOOM); | 
| 157 | 174 | 
| 158   WebViewInternalSetZoomFunction(); | 175   WebViewInternalSetZoomFunction(); | 
| 159 | 176 | 
| 160  protected: | 177  protected: | 
| 161   virtual ~WebViewInternalSetZoomFunction(); | 178   virtual ~WebViewInternalSetZoomFunction(); | 
| 162 | 179 | 
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 345   uint32 remove_mask_; | 362   uint32 remove_mask_; | 
| 346   // Tracks any data related or parse errors. | 363   // Tracks any data related or parse errors. | 
| 347   bool bad_message_; | 364   bool bad_message_; | 
| 348 | 365 | 
| 349   DISALLOW_COPY_AND_ASSIGN(WebViewInternalClearDataFunction); | 366   DISALLOW_COPY_AND_ASSIGN(WebViewInternalClearDataFunction); | 
| 350 }; | 367 }; | 
| 351 | 368 | 
| 352 }  // namespace extensions | 369 }  // namespace extensions | 
| 353 | 370 | 
| 354 #endif  // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ | 371 #endif  // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ | 
| OLD | NEW | 
|---|