Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.cc

Issue 2971363002: Detect if osk is visible on windows (Closed)
Patch Set: Refactoring base function Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/base/win/osk_display_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/location_bar/location_bar_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
index a962a9e1518d1226bc0f1cfada820fa748c3ae11..f59c2a4e5f79b5ebb76b99c6825a0fffc2e16728 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -103,6 +103,10 @@
#include "ui/keyboard/keyboard_util.h"
#endif
+#if defined(OS_WIN)
+#include "ui/base/win/osk_display_manager.h"
+#endif
+
using content::WebContents;
using views::View;
@@ -741,7 +745,9 @@ void LocationBarView::ButtonPressed(views::Button* sender,
}
bool LocationBarView::IsVirtualKeyboardVisible() {
-#if defined(USE_AURA)
+#if defined(OS_WIN)
+ return ui::OnScreenKeyboardDisplayManager::GetInstance()->IsKeyboardVisible();
+#elif defined(USE_AURA)
return keyboard::IsKeyboardVisible();
#else
return false;
« no previous file with comments | « no previous file | ui/base/win/osk_display_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698