| 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_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_ |
| 7 | 7 |
| 8 #include "extensions/browser/extension_function.h" | 8 #include "extensions/browser/extension_function.h" |
| 9 | 9 |
| 10 namespace extensions { | 10 namespace extensions { |
| 11 | 11 |
| 12 class GuestViewInternalCreateGuestFunction : public AsyncExtensionFunction { | 12 class GuestViewInternalCreateGuestFunction : public AsyncExtensionFunction { |
| 13 public: | 13 public: |
| 14 DECLARE_EXTENSION_FUNCTION("guestViewInternal.createGuest", | 14 DECLARE_EXTENSION_FUNCTION("guestViewInternal.createGuest", |
| 15 GUESTVIEWINTERNAL_CREATEGUEST); | 15 GUESTVIEWINTERNAL_CREATEGUEST); |
| 16 GuestViewInternalCreateGuestFunction(); | 16 GuestViewInternalCreateGuestFunction(); |
| 17 | 17 |
| 18 protected: | 18 protected: |
| 19 virtual ~GuestViewInternalCreateGuestFunction() {} | 19 virtual ~GuestViewInternalCreateGuestFunction() {} |
| 20 virtual bool RunAsync() OVERRIDE FINAL; | 20 virtual bool RunAsync() OVERRIDE FINAL; |
| 21 | 21 |
| 22 private: | 22 private: |
| 23 void CreateGuestCallback(content::WebContents* guest_web_contents); | 23 void CreateGuestCallback(content::WebContents* guest_web_contents); |
| 24 DISALLOW_COPY_AND_ASSIGN(GuestViewInternalCreateGuestFunction); | 24 DISALLOW_COPY_AND_ASSIGN(GuestViewInternalCreateGuestFunction); |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 class GuestViewInternalSetAutoSizeFunction : public AsyncExtensionFunction { |
| 28 public: |
| 29 DECLARE_EXTENSION_FUNCTION("guestViewInternal.setAutoSize", |
| 30 GUESTVIEWINTERNAL_SETAUTOSIZE); |
| 31 |
| 32 GuestViewInternalSetAutoSizeFunction(); |
| 33 |
| 34 protected: |
| 35 virtual ~GuestViewInternalSetAutoSizeFunction(); |
| 36 virtual bool RunAsync() OVERRIDE FINAL; |
| 37 |
| 38 private: |
| 39 DISALLOW_COPY_AND_ASSIGN(GuestViewInternalSetAutoSizeFunction); |
| 40 }; |
| 41 |
| 27 } // namespace extensions | 42 } // namespace extensions |
| 28 | 43 |
| 29 #endif // CHROME_BROWSER_EXTENSIONS_API_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_ | 44 #endif // CHROME_BROWSER_EXTENSIONS_API_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_ |
| OLD | NEW |