Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Unified Diff: ppapi/cpp/dev/resize_client_dev.h

Issue 7538006: Pepper and WebKit API change to support a plugin knowing if a scrollbar is an overlay one. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Redo by adding ScrollbarGroup to pepper and WebKit Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/cpp/dev/resize_client_dev.h
===================================================================
--- ppapi/cpp/dev/resize_client_dev.h (revision 0)
+++ ppapi/cpp/dev/resize_client_dev.h (revision 0)
@@ -0,0 +1,38 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PPAPI_CPP_DEV_RESIZE_CLIENT_DEV_H_
+#define PPAPI_CPP_DEV_RESIZE_CLIENT_DEV_H_
+
+#include "ppapi/c/pp_stdint.h"
+
+namespace pp {
+
+class Instance;
+
+// This class provides a C++ interface for callbacks to know when a full-frame
+// plugin starts and stops resizing. Only plugins that use the ScrollGroup API
+// need to listen to this.
+class ResizeClient_Dev {
+ public:
+ ResizeClient_Dev(Instance* instance);
+ virtual ~ResizeClient_Dev();
+
+ /**
+ * Notification that the resizing for this full frame plugin has started.
+ */
+ virtual void WillStartLiveResize() = 0;
+
+ /**
+ * Notification that the resizing for this full frame plugin has stopped.
+ */
+ virtual void WillEndLiveResize() = 0;
+
+ private:
+ Instance* associated_instance_;
+};
+
+} // namespace pp
+
+#endif // PPAPI_CPP_DEV_RESIZE_CLIENT_DEV_H_
Property changes on: ppapi\cpp\dev\resize_client_dev.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698