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

Unified Diff: webkit/plugins/ppapi/ppapi_plugin_instance.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: Get rid of ScrollbarGroup's methods and the ResizeClient interface 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: webkit/plugins/ppapi/ppapi_plugin_instance.h
===================================================================
--- webkit/plugins/ppapi/ppapi_plugin_instance.h (revision 95420)
+++ webkit/plugins/ppapi/ppapi_plugin_instance.h (working copy)
@@ -72,6 +72,7 @@
class PPB_Graphics2D_Impl;
class PPB_Graphics3D_Impl;
class PPB_ImageData_Impl;
+class PPB_ScrollbarGroup_Impl;
class PPB_Surface3D_Impl;
class PPB_URLLoader_Impl;
class PPB_URLRequestInfo_Impl;
@@ -199,6 +200,8 @@
int identifier);
void SelectFindResult(bool forward);
void StopFind();
+ void WillStartLiveResize();
+ void WillEndLiveResize();
bool SupportsPrintInterface();
int PrintBegin(const gfx::Rect& printable_area, int printer_dpi);
@@ -246,6 +249,9 @@
return fullscreen_container_;
}
+ // Callback to associate a full-frame instance's scrollgroup object.
+ void SetScrollbarGroup(PPB_ScrollbarGroup_Impl* scrollbar_group);
+
// FunctionGroupBase overrides.
virtual ::ppapi::thunk::PPB_Instance_FunctionAPI* AsPPB_Instance_FunctionAPI()
OVERRIDE;
@@ -488,6 +494,11 @@
uint32_t input_event_mask_;
uint32_t filtered_input_event_mask_;
+ // For full-page plugin, if it has a ScrollbarGroup object, we keep a
+ // non-owning pointer to it so we can send WebKit page-resize and mouse move
+ // callbacks. This is needed on Lion for overlay scrollbars.
+ PPB_ScrollbarGroup_Impl* scrollbar_group_;
+
DISALLOW_COPY_AND_ASSIGN(PluginInstance);
};

Powered by Google App Engine
This is Rietveld 408576698