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

Side by Side Diff: ui/base/win/osk_display_manager.h

Issue 2971363002: Detect if osk is visible on windows (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_BASE_WIN_OSK_DISPLAY_MANAGER_H_ 5 #ifndef UI_BASE_WIN_OSK_DISPLAY_MANAGER_H_
6 #define UI_BASE_WIN_OSK_DISPLAY_MANAGER_H_ 6 #define UI_BASE_WIN_OSK_DISPLAY_MANAGER_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 23 matching lines...) Expand all
34 bool DismissVirtualKeyboard(); 34 bool DismissVirtualKeyboard();
35 35
36 // Removes a registered observer. 36 // Removes a registered observer.
37 void RemoveObserver(OnScreenKeyboardObserver* observer); 37 void RemoveObserver(OnScreenKeyboardObserver* observer);
38 38
39 // Returns the path of the on screen keyboard exe (TabTip.exe) in the 39 // Returns the path of the on screen keyboard exe (TabTip.exe) in the
40 // |osk_path| parameter. 40 // |osk_path| parameter.
41 // Returns true on success. 41 // Returns true on success.
42 bool GetOSKPath(base::string16* osk_path); 42 bool GetOSKPath(base::string16* osk_path);
43 43
44 // Returns true if the virtual keyboard is currently visible.
45 bool IsKeyboardVisible();
Peter Kasting 2017/07/08 02:19:31 Nit: const?
girard 2017/07/10 20:23:51 Done.
46
44 private: 47 private:
45 OnScreenKeyboardDisplayManager(); 48 OnScreenKeyboardDisplayManager();
46 49
47 std::unique_ptr<OnScreenKeyboardDetector> keyboard_detector_; 50 std::unique_ptr<OnScreenKeyboardDetector> keyboard_detector_;
48 51
49 // The location of TabTip.exe. 52 // The location of TabTip.exe.
50 base::string16 osk_path_; 53 base::string16 osk_path_;
51 54
52 DISALLOW_COPY_AND_ASSIGN(OnScreenKeyboardDisplayManager); 55 DISALLOW_COPY_AND_ASSIGN(OnScreenKeyboardDisplayManager);
53 }; 56 };
54 57
55 } // namespace ui 58 } // namespace ui
56 59
57 #endif // UI_BASE_WIN_OSK_DISPLAY_MANAGER_H_ 60 #endif // UI_BASE_WIN_OSK_DISPLAY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698