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

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

Issue 10909206: Add tablet heuristic detection (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
« 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 string16* command); 97 string16* command);
98 98
99 // Sets whether to crash the process during exit. This is inspected by DLLMain 99 // Sets whether to crash the process during exit. This is inspected by DLLMain
100 // and used to intercept unexpected terminations of the process (via calls to 100 // and used to intercept unexpected terminations of the process (via calls to
101 // exit(), abort(), _exit(), ExitProcess()) and convert them into crashes. 101 // exit(), abort(), _exit(), ExitProcess()) and convert them into crashes.
102 // Note that not all mechanisms for terminating the process are covered by 102 // Note that not all mechanisms for terminating the process are covered by
103 // this. In particular, TerminateProcess() is not caught. 103 // this. In particular, TerminateProcess() is not caught.
104 BASE_EXPORT void SetShouldCrashOnProcessDetach(bool crash); 104 BASE_EXPORT void SetShouldCrashOnProcessDetach(bool crash);
105 BASE_EXPORT bool ShouldCrashOnProcessDetach(); 105 BASE_EXPORT bool ShouldCrashOnProcessDetach();
106 106
107 // A tablet by this definition is something that has integrated multi-touch
108 // but is not also pen-enabled. For example a Thinkpad X220 tablet is not
109 // considered a tabled while a Samsum 700T tablet is.
110 BASE_EXPORT bool bool IsMachineATablet();
grt (UTC plus 2) 2012/09/13 18:15:28 bool bool -> bool
111
107 // Get the size of a struct up to and including the specified member. 112 // Get the size of a struct up to and including the specified member.
108 // This is necessary to set compatible struct sizes for different versions 113 // This is necessary to set compatible struct sizes for different versions
109 // of certain Windows APIs (e.g. SystemParametersInfo). 114 // of certain Windows APIs (e.g. SystemParametersInfo).
110 #define SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(struct_name, member) \ 115 #define SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(struct_name, member) \
111 offsetof(struct_name, member) + \ 116 offsetof(struct_name, member) + \
112 (sizeof static_cast<struct_name*>(NULL)->member) 117 (sizeof static_cast<struct_name*>(NULL)->member)
113 118
114 } // namespace win 119 } // namespace win
115 } // namespace base 120 } // namespace base
116 121
117 #endif // BASE_WIN_WIN_UTIL_H_ 122 #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