]> git.sesse.net Git - nageru/commitdiff
Adapt to newer CEF versions.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 8 Mar 2019 21:03:46 +0000 (22:03 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 8 Mar 2019 21:03:46 +0000 (22:03 +0100)
nageru/cef_capture.cpp
nageru/cef_capture.h

index b6b8cca489ff782182541101a1db372ac1ab735a..09c451fa2c7b6dff968f9b828e6c08f42a9d570b 100644 (file)
@@ -246,16 +246,15 @@ void NageruCEFClient::OnPaint(CefRefPtr<CefBrowser> browser, PaintElementType ty
        parent->OnPaint(buffer, width, height);
 }
 
-bool NageruCEFClient::GetViewRect(CefRefPtr<CefBrowser> browser, CefRect &rect)
+void NageruCEFClient::GetViewRect(CefRefPtr<CefBrowser> browser, CefRect &rect)
 {
-       return parent->GetViewRect(rect);
+       parent->GetViewRect(rect);
 }
 
-bool CEFCapture::GetViewRect(CefRect &rect)
+void CEFCapture::GetViewRect(CefRect &rect)
 {
        lock_guard<mutex> lock(resolution_mutex);
        rect = CefRect(0, 0, width, height);
-       return true;
 }
 
 void NageruCEFClient::OnLoadEnd(CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame, int httpStatusCode)
index 29dededf7b60ad8696dfaec10c71c7f7e84844f4..2b4d1cb8441b45dca8bb618a5c4bacc48ef77c50 100644 (file)
@@ -52,7 +52,7 @@ public:
 
        void OnPaint(CefRefPtr<CefBrowser> browser, PaintElementType type, const RectList &dirtyRects, const void *buffer, int width, int height) override;
 
-       bool GetViewRect(CefRefPtr<CefBrowser> browser, CefRect &rect) override;
+       void GetViewRect(CefRefPtr<CefBrowser> browser, CefRect &rect) override;
 
        // CefLoadHandler.
 
@@ -89,7 +89,7 @@ public:
 
        // Callbacks from NageruCEFClient.
        void OnPaint(const void *buffer, int width, int height);
-       bool GetViewRect(CefRect &rect);
+       void GetViewRect(CefRect &rect);
        void OnLoadEnd();
 
        // CaptureInterface.