Bug 1083067 part.9 Remove nsGtkIMModule::IsVirtualKeyboardOpened() because it always returns false r=m_kato

This commit is contained in:
Masayuki Nakano 2014-11-10 18:07:44 +09:00
Родитель ab614290a2
Коммит 6e1c43d928
3 изменённых файлов: 2 добавлений и 15 удалений

Просмотреть файл

@ -572,13 +572,6 @@ nsGtkIMModule::GetInputContext()
return mInputContext;
}
/* static */
bool
nsGtkIMModule::IsVirtualKeyboardOpened()
{
return false;
}
GtkIMContext*
nsGtkIMModule::GetCurrentContext() const
{

Просмотреть файл

@ -89,10 +89,6 @@ public:
InputContext GetInputContext();
void OnUpdateComposition();
// If a software keyboard has been opened, this returns TRUE.
// Otherwise, FALSE.
static bool IsVirtualKeyboardOpened();
protected:
// Owner of an instance of this class. This should be top level window.
// The owner window must release the contexts when it's destroyed because

Просмотреть файл

@ -3186,10 +3186,8 @@ nsWindow::OnVisibilityNotifyEvent(GdkEventVisibility *aEvent)
mIsFullyObscured = false;
if (!nsGtkIMModule::IsVirtualKeyboardOpened()) {
// if we have to retry the grab, retry it.
EnsureGrabs();
}
// if we have to retry the grab, retry it.
EnsureGrabs();
break;
default: // includes GDK_VISIBILITY_FULLY_OBSCURED
mIsFullyObscured = true;