OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PPAPI_CPP_DEV_RESIZE_CLIENT_DEV_H_ |
| 6 #define PPAPI_CPP_DEV_RESIZE_CLIENT_DEV_H_ |
| 7 |
| 8 #include "ppapi/c/pp_stdint.h" |
| 9 |
| 10 namespace pp { |
| 11 |
| 12 class Instance; |
| 13 |
| 14 // This class provides a C++ interface for callbacks to know when a full-frame |
| 15 // plugin starts and stops resizing. Only plugins that use the ScrollGroup API |
| 16 // need to listen to this. |
| 17 class ResizeClient_Dev { |
| 18 public: |
| 19 ResizeClient_Dev(Instance* instance); |
| 20 virtual ~ResizeClient_Dev(); |
| 21 |
| 22 /** |
| 23 * Notification that the resizing for this full frame plugin has started. |
| 24 */ |
| 25 virtual void WillStartLiveResize() = 0; |
| 26 |
| 27 /** |
| 28 * Notification that the resizing for this full frame plugin has stopped. |
| 29 */ |
| 30 virtual void WillEndLiveResize() = 0; |
| 31 |
| 32 private: |
| 33 Instance* associated_instance_; |
| 34 }; |
| 35 |
| 36 } // namespace pp |
| 37 |
| 38 #endif // PPAPI_CPP_DEV_RESIZE_CLIENT_DEV_H_ |
OLD | NEW |