| 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 CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/extensions/api/capture_web_contents_function.h" | 8 #include "chrome/browser/extensions/api/capture_web_contents_function.h" |
| 9 #include "chrome/browser/extensions/api/execute_code_function.h" | 9 #include "chrome/browser/extensions/api/execute_code_function.h" |
| 10 #include "chrome/browser/guest_view/web_view/web_view_find_helper.h" | 10 #include "chrome/browser/guest_view/web_view/web_view_find_helper.h" |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 protected: | 360 protected: |
| 361 virtual ~WebViewInternalSetPermissionFunction(); | 361 virtual ~WebViewInternalSetPermissionFunction(); |
| 362 | 362 |
| 363 private: | 363 private: |
| 364 // WebViewInternalExtensionFunction implementation. | 364 // WebViewInternalExtensionFunction implementation. |
| 365 virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE; | 365 virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE; |
| 366 | 366 |
| 367 DISALLOW_COPY_AND_ASSIGN(WebViewInternalSetPermissionFunction); | 367 DISALLOW_COPY_AND_ASSIGN(WebViewInternalSetPermissionFunction); |
| 368 }; | 368 }; |
| 369 | 369 |
| 370 class WebViewInternalSetAutoSizeFunction |
| 371 : public WebViewInternalExtensionFunction { |
| 372 public: |
| 373 DECLARE_EXTENSION_FUNCTION("webViewInternal.setAutoSize", |
| 374 WEBVIEWINTERNAL_SETAUTOSIZE); |
| 375 |
| 376 WebViewInternalSetAutoSizeFunction(); |
| 377 |
| 378 protected: |
| 379 virtual ~WebViewInternalSetAutoSizeFunction(); |
| 380 |
| 381 private: |
| 382 // WebViewInternalExtensionFunction implementation. |
| 383 virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE; |
| 384 |
| 385 DISALLOW_COPY_AND_ASSIGN(WebViewInternalSetAutoSizeFunction); |
| 386 }; |
| 387 |
| 370 class WebViewInternalShowContextMenuFunction | 388 class WebViewInternalShowContextMenuFunction |
| 371 : public WebViewInternalExtensionFunction { | 389 : public WebViewInternalExtensionFunction { |
| 372 public: | 390 public: |
| 373 DECLARE_EXTENSION_FUNCTION("webViewInternal.showContextMenu", | 391 DECLARE_EXTENSION_FUNCTION("webViewInternal.showContextMenu", |
| 374 WEBVIEWINTERNAL_SHOWCONTEXTMENU); | 392 WEBVIEWINTERNAL_SHOWCONTEXTMENU); |
| 375 | 393 |
| 376 WebViewInternalShowContextMenuFunction(); | 394 WebViewInternalShowContextMenuFunction(); |
| 377 | 395 |
| 378 protected: | 396 protected: |
| 379 virtual ~WebViewInternalShowContextMenuFunction(); | 397 virtual ~WebViewInternalShowContextMenuFunction(); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 private: | 451 private: |
| 434 // WebViewInternalExtensionFunction implementation. | 452 // WebViewInternalExtensionFunction implementation. |
| 435 virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE; | 453 virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE; |
| 436 | 454 |
| 437 DISALLOW_COPY_AND_ASSIGN(WebViewInternalTerminateFunction); | 455 DISALLOW_COPY_AND_ASSIGN(WebViewInternalTerminateFunction); |
| 438 }; | 456 }; |
| 439 | 457 |
| 440 } // namespace extensions | 458 } // namespace extensions |
| 441 | 459 |
| 442 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ | 460 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ |
| OLD | NEW |