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:
@@ -133,7 +133,7 @@ views::Widget* CefBrowserPlatformDelegateNativeLinux::GetWindowWidget() const {
|
||||
return window_widget_;
|
||||
}
|
||||
|
||||
void CefBrowserPlatformDelegateNativeLinux::SendFocusEvent(bool setFocus) {
|
||||
void CefBrowserPlatformDelegateNativeLinux::SetFocus(bool setFocus) {
|
||||
if (!setFocus)
|
||||
return;
|
||||
|
||||
|
@@ -24,7 +24,7 @@ class CefBrowserPlatformDelegateNativeLinux
|
||||
void CloseHostWindow() override;
|
||||
CefWindowHandle GetHostWindowHandle() const override;
|
||||
views::Widget* GetWindowWidget() const override;
|
||||
void SendFocusEvent(bool setFocus) override;
|
||||
void SetFocus(bool setFocus) override;
|
||||
void NotifyMoveOrResizeStarted() override;
|
||||
void SizeTo(int width, int height) override;
|
||||
gfx::Point GetScreenPoint(const gfx::Point& view) const override;
|
||||
|
@@ -33,7 +33,7 @@ class CefBrowserPlatformDelegateNativeMac
|
||||
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(
|
||||
|
@@ -310,7 +310,7 @@ void CefBrowserPlatformDelegateNativeMac::SendTouchEvent(
|
||||
NOTIMPLEMENTED();
|
||||
}
|
||||
|
||||
void CefBrowserPlatformDelegateNativeMac::SendFocusEvent(bool setFocus) {
|
||||
void CefBrowserPlatformDelegateNativeMac::SetFocus(bool setFocus) {
|
||||
auto view = GetHostView();
|
||||
if (view) {
|
||||
view->SetActive(setFocus);
|
||||
|
@@ -243,7 +243,7 @@ views::Widget* CefBrowserPlatformDelegateNativeWin::GetWindowWidget() const {
|
||||
return window_widget_;
|
||||
}
|
||||
|
||||
void CefBrowserPlatformDelegateNativeWin::SendFocusEvent(bool setFocus) {
|
||||
void CefBrowserPlatformDelegateNativeWin::SetFocus(bool setFocus) {
|
||||
if (!setFocus)
|
||||
return;
|
||||
|
||||
|
@@ -22,7 +22,7 @@ class CefBrowserPlatformDelegateNativeWin
|
||||
void CloseHostWindow() override;
|
||||
CefWindowHandle GetHostWindowHandle() const override;
|
||||
views::Widget* GetWindowWidget() const override;
|
||||
void SendFocusEvent(bool setFocus) override;
|
||||
void SetFocus(bool setFocus) override;
|
||||
void NotifyMoveOrResizeStarted() override;
|
||||
void SizeTo(int width, int height) override;
|
||||
gfx::Point GetScreenPoint(const gfx::Point& view) const override;
|
||||
|
Reference in New Issue
Block a user