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_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_ |
6 #define EXTENSIONS_BROWSER_API_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_ | 6 #define EXTENSIONS_BROWSER_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 { |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 protected: | 33 protected: |
34 ~GuestViewInternalDestroyGuestFunction() override; | 34 ~GuestViewInternalDestroyGuestFunction() override; |
35 bool RunAsync() final; | 35 bool RunAsync() final; |
36 | 36 |
37 private: | 37 private: |
38 void DestroyGuestCallback(content::WebContents* guest_web_contents); | 38 void DestroyGuestCallback(content::WebContents* guest_web_contents); |
39 DISALLOW_COPY_AND_ASSIGN(GuestViewInternalDestroyGuestFunction); | 39 DISALLOW_COPY_AND_ASSIGN(GuestViewInternalDestroyGuestFunction); |
40 }; | 40 }; |
41 | 41 |
42 class GuestViewInternalSetAutoSizeFunction : public AsyncExtensionFunction { | 42 class GuestViewInternalSetSizeFunction : public AsyncExtensionFunction { |
43 public: | 43 public: |
44 DECLARE_EXTENSION_FUNCTION("guestViewInternal.setAutoSize", | 44 DECLARE_EXTENSION_FUNCTION("guestViewInternal.setSize", |
45 GUESTVIEWINTERNAL_SETAUTOSIZE); | 45 GUESTVIEWINTERNAL_SETAUTOSIZE); |
46 | 46 |
47 GuestViewInternalSetAutoSizeFunction(); | 47 GuestViewInternalSetSizeFunction(); |
48 | 48 |
49 protected: | 49 protected: |
50 ~GuestViewInternalSetAutoSizeFunction() override; | 50 ~GuestViewInternalSetSizeFunction() override; |
51 bool RunAsync() final; | 51 bool RunAsync() final; |
52 | 52 |
53 private: | 53 private: |
54 DISALLOW_COPY_AND_ASSIGN(GuestViewInternalSetAutoSizeFunction); | 54 DISALLOW_COPY_AND_ASSIGN(GuestViewInternalSetSizeFunction); |
55 }; | 55 }; |
56 | 56 |
57 } // namespace extensions | 57 } // namespace extensions |
58 | 58 |
59 #endif // EXTENSIONS_BROWSER_API_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_ | 59 #endif // EXTENSIONS_BROWSER_API_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_ |
OLD | NEW |