| 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_GUEST_VIEW_GUEST_VIEW_BASE_H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ |
| 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 | 9 |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // This gives the derived class an opportunity to perform some cleanup. | 117 // This gives the derived class an opportunity to perform some cleanup. |
| 118 virtual void GuestDestroyed() {} | 118 virtual void GuestDestroyed() {} |
| 119 | 119 |
| 120 // This method is invoked when the guest RenderView is ready, e.g. because we | 120 // This method is invoked when the guest RenderView is ready, e.g. because we |
| 121 // recreated it after a crash or after reattachment. | 121 // recreated it after a crash or after reattachment. |
| 122 // | 122 // |
| 123 // This gives the derived class an opportunity to perform some initialization | 123 // This gives the derived class an opportunity to perform some initialization |
| 124 // work. | 124 // work. |
| 125 virtual void GuestReady() {} | 125 virtual void GuestReady() {} |
| 126 | 126 |
| 127 virtual void EmbedderFullscreenToggled(bool entered_fullscreen) {} |
| 128 |
| 127 // This method is invoked when the contents auto-resized to give the container | 129 // This method is invoked when the contents auto-resized to give the container |
| 128 // an opportunity to match it if it wishes. | 130 // an opportunity to match it if it wishes. |
| 129 // | 131 // |
| 130 // This gives the derived class an opportunity to inform its container element | 132 // This gives the derived class an opportunity to inform its container element |
| 131 // or perform other actions. | 133 // or perform other actions. |
| 132 virtual void GuestSizeChangedDueToAutoSize(const gfx::Size& old_size, | 134 virtual void GuestSizeChangedDueToAutoSize(const gfx::Size& old_size, |
| 133 const gfx::Size& new_size) {} | 135 const gfx::Size& new_size) {} |
| 134 | 136 |
| 135 // This method queries whether autosize is supported for this particular view. | 137 // This method queries whether autosize is supported for this particular view. |
| 136 // By default, autosize is not supported. Derived classes can override this | 138 // By default, autosize is not supported. Derived classes can override this |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 // This is used to ensure pending tasks will not fire after this object is | 439 // This is used to ensure pending tasks will not fire after this object is |
| 438 // destroyed. | 440 // destroyed. |
| 439 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; | 441 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; |
| 440 | 442 |
| 441 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); | 443 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); |
| 442 }; | 444 }; |
| 443 | 445 |
| 444 } // namespace extensions | 446 } // namespace extensions |
| 445 | 447 |
| 446 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ | 448 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ |
| OLD | NEW |