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

Side by Side Diff: base/win/win_util.h

Issue 1986153005: The on screen keyboard on Windows 8+ should not obscure the input field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address sky unittest review comments Created 4 years, 7 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
« no previous file with comments | « no previous file | base/win/win_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // ============================================================================= 5 // =============================================================================
6 // PLEASE READ 6 // PLEASE READ
7 // 7 //
8 // In general, you should not be adding stuff to this file. 8 // In general, you should not be adding stuff to this file.
9 // 9 //
10 // - If your thing is only used in one place, just put it in a reasonable 10 // - If your thing is only used in one place, just put it in a reasonable
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // parameter to the detection method that was used to detect the keyboard. 142 // parameter to the detection method that was used to detect the keyboard.
143 BASE_EXPORT bool IsKeyboardPresentOnSlate(std::string* reason); 143 BASE_EXPORT bool IsKeyboardPresentOnSlate(std::string* reason);
144 144
145 // Get the size of a struct up to and including the specified member. 145 // Get the size of a struct up to and including the specified member.
146 // This is necessary to set compatible struct sizes for different versions 146 // This is necessary to set compatible struct sizes for different versions
147 // of certain Windows APIs (e.g. SystemParametersInfo). 147 // of certain Windows APIs (e.g. SystemParametersInfo).
148 #define SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(struct_name, member) \ 148 #define SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(struct_name, member) \
149 offsetof(struct_name, member) + \ 149 offsetof(struct_name, member) + \
150 (sizeof static_cast<struct_name*>(NULL)->member) 150 (sizeof static_cast<struct_name*>(NULL)->member)
151 151
152 // Displays the on screen keyboard on Windows 8 and above. Returns true on
153 // success.
154 BASE_EXPORT bool DisplayVirtualKeyboard();
155
156 // Dismisses the on screen keyboard if it is being displayed on Windows 8 and.
157 // above. Returns true on success.
158 BASE_EXPORT bool DismissVirtualKeyboard();
159
160 // Returns true if the machine is enrolled to a domain. 152 // Returns true if the machine is enrolled to a domain.
161 BASE_EXPORT bool IsEnrolledToDomain(); 153 BASE_EXPORT bool IsEnrolledToDomain();
162 154
163 // Used by tests to mock any wanted state. Call with |state| set to true to 155 // Used by tests to mock any wanted state. Call with |state| set to true to
164 // simulate being in a domain and false otherwise. 156 // simulate being in a domain and false otherwise.
165 BASE_EXPORT void SetDomainStateForTesting(bool state); 157 BASE_EXPORT void SetDomainStateForTesting(bool state);
166 158
167 // Returns true if the current process can make USER32 or GDI32 calls such as 159 // Returns true if the current process can make USER32 or GDI32 calls such as
168 // CreateWindow and CreateDC. Windows 8 and above allow the kernel component 160 // CreateWindow and CreateDC. Windows 8 and above allow the kernel component
169 // of these calls to be disabled which can cause undefined behaviour such as 161 // of these calls to be disabled which can cause undefined behaviour such as
(...skipping 11 matching lines...) Expand all
181 // Adds or removes the MICROSOFT_TABLETPENSERVICE_PROPERTY property with the 173 // Adds or removes the MICROSOFT_TABLETPENSERVICE_PROPERTY property with the
182 // TABLET_DISABLE_FLICKS & TABLET_DISABLE_FLICKFALLBACKKEYS flags in order to 174 // TABLET_DISABLE_FLICKS & TABLET_DISABLE_FLICKFALLBACKKEYS flags in order to
183 // disable pen flick gestures for the given HWND. 175 // disable pen flick gestures for the given HWND.
184 BASE_EXPORT void EnableFlicks(HWND hwnd); 176 BASE_EXPORT void EnableFlicks(HWND hwnd);
185 BASE_EXPORT void DisableFlicks(HWND hwnd); 177 BASE_EXPORT void DisableFlicks(HWND hwnd);
186 178
187 } // namespace win 179 } // namespace win
188 } // namespace base 180 } // namespace base
189 181
190 #endif // BASE_WIN_WIN_UTIL_H_ 182 #endif // BASE_WIN_WIN_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | base/win/win_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698