mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Rename SendFocusEvent to SetFocus (fixes issue #866)
Also removes CefBrowserHost::SendFocusEvent. Use the existing SetFocus method instead.
This commit is contained in:
@@ -161,10 +161,10 @@ void CefBrowserPlatformDelegateOsr::SendTouchEvent(const CefTouchEvent& event) {
|
||||
view->SendTouchEvent(event);
|
||||
}
|
||||
|
||||
void CefBrowserPlatformDelegateOsr::SendFocusEvent(bool setFocus) {
|
||||
void CefBrowserPlatformDelegateOsr::SetFocus(bool setFocus) {
|
||||
CefRenderWidgetHostViewOSR* view = GetOSRHostView();
|
||||
if (view)
|
||||
view->SendFocusEvent(setFocus);
|
||||
view->SetFocus(setFocus);
|
||||
}
|
||||
|
||||
gfx::Point CefBrowserPlatformDelegateOsr::GetScreenPoint(
|
||||
|
@@ -42,7 +42,7 @@ class CefBrowserPlatformDelegateOsr
|
||||
int deltaX,
|
||||
int deltaY) override;
|
||||
void SendTouchEvent(const CefTouchEvent& event) override;
|
||||
void SendFocusEvent(bool setFocus) override;
|
||||
void SetFocus(bool setFocus) override;
|
||||
gfx::Point GetScreenPoint(const gfx::Point& view) const override;
|
||||
void ViewText(const std::string& text) override;
|
||||
bool HandleKeyboardEvent(
|
||||
|
@@ -1305,7 +1305,7 @@ bool CefRenderWidgetHostViewOSR::ShouldRouteEvents() const {
|
||||
return !!render_widget_host_->delegate()->GetInputEventRouter();
|
||||
}
|
||||
|
||||
void CefRenderWidgetHostViewOSR::SendFocusEvent(bool focus) {
|
||||
void CefRenderWidgetHostViewOSR::SetFocus(bool focus) {
|
||||
if (!render_widget_host_)
|
||||
return;
|
||||
|
||||
|
@@ -225,7 +225,7 @@ class CefRenderWidgetHostViewOSR
|
||||
void SendMouseWheelEvent(const blink::WebMouseWheelEvent& event);
|
||||
void SendTouchEvent(const CefTouchEvent& event);
|
||||
bool ShouldRouteEvents() const;
|
||||
void SendFocusEvent(bool focus);
|
||||
void SetFocus(bool focus);
|
||||
void UpdateFrameRate();
|
||||
|
||||
gfx::Size SizeInPixels();
|
||||
|
Reference in New Issue
Block a user