mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Mac: Add off-screen rendering support (issue #518).
- Build with the 10.7 SDK (set GYP_DEFINES='mac_sdk=10.7') to include Retina support in the cefclient OSR example. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1226 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -57,6 +57,19 @@ class CefRenderWidgetHostViewOSR : public content::RenderWidgetHostViewBase {
|
||||
virtual void Hide() OVERRIDE;
|
||||
virtual bool IsShowing() OVERRIDE;
|
||||
virtual gfx::Rect GetViewBounds() const OVERRIDE;
|
||||
#if defined(OS_MACOSX)
|
||||
virtual void SetActive(bool active) OVERRIDE;
|
||||
virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE;
|
||||
virtual void SetWindowVisibility(bool visible) OVERRIDE;
|
||||
virtual void WindowFrameChanged() OVERRIDE;
|
||||
|
||||
virtual void ShowDefinitionForSelection() OVERRIDE;
|
||||
|
||||
virtual bool SupportsSpeech() const OVERRIDE;
|
||||
virtual void SpeakSelection() OVERRIDE;
|
||||
virtual bool IsSpeaking() const OVERRIDE;
|
||||
virtual void StopSpeaking() OVERRIDE;
|
||||
#endif // defined(OS_MACOSX)
|
||||
|
||||
// RenderWidgetHostViewPort methods.
|
||||
virtual void InitAsPopup(RenderWidgetHostView* parent_host_view,
|
||||
@@ -130,6 +143,13 @@ class CefRenderWidgetHostViewOSR : public content::RenderWidgetHostViewBase {
|
||||
virtual void SetClickthroughRegion(SkRegion* region) OVERRIDE;
|
||||
#endif
|
||||
|
||||
#if defined(OS_MACOSX)
|
||||
virtual void AboutToWaitForBackingStoreMsg() OVERRIDE;
|
||||
|
||||
virtual bool PostProcessEventForPluginIme(
|
||||
const content::NativeWebKeyboardEvent& event) OVERRIDE;
|
||||
#endif
|
||||
|
||||
// RenderWidgetHostViewBase methods.
|
||||
virtual void SetBackground(const SkBitmap& background) OVERRIDE;
|
||||
|
||||
@@ -142,6 +162,9 @@ class CefRenderWidgetHostViewOSR : public content::RenderWidgetHostViewBase {
|
||||
void Paint(const std::vector<gfx::Rect>& copy_rects);
|
||||
bool InstallTransparency();
|
||||
|
||||
void OnScreenInfoChanged();
|
||||
float GetDeviceScaleFactor();
|
||||
|
||||
void CancelWidget();
|
||||
void NotifyShowWidget();
|
||||
void NotifyHideWidget();
|
||||
|
Reference in New Issue
Block a user