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

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

Issue 8729009: Implement an AutoLaunch experiment for Chrome for certain brand codes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 27 matching lines...) Expand all
38 namespace win { 38 namespace win {
39 39
40 // A Windows message reflected from other windows. This message is sent 40 // A Windows message reflected from other windows. This message is sent
41 // with the following arguments: 41 // with the following arguments:
42 // hWnd - Target window 42 // hWnd - Target window
43 // uMsg - kReflectedMessage 43 // uMsg - kReflectedMessage
44 // wParam - Should be 0 44 // wParam - Should be 0
45 // lParam - Pointer to MSG struct containing the original message. 45 // lParam - Pointer to MSG struct containing the original message.
46 const int kReflectedMessage = WM_APP + 3; 46 const int kReflectedMessage = WM_APP + 3;
47 47
48 // The location of the Run key in the registry.
49 extern const wchar_t kRunKey[];
grt (UTC plus 2) 2011/12/01 04:45:02 i think this is the wrong direction. please see m
50
51 // The name of the Chrome Auto-launch key under the Run key.
grt (UTC plus 2) 2011/12/01 04:45:02 move this back into install util.
52 extern const wchar_t kAutolaunchKeyValue[];
53
48 BASE_EXPORT void GetNonClientMetrics(NONCLIENTMETRICS* metrics); 54 BASE_EXPORT void GetNonClientMetrics(NONCLIENTMETRICS* metrics);
49 55
50 // Returns the string representing the current user sid. 56 // Returns the string representing the current user sid.
51 BASE_EXPORT bool GetUserSidString(std::wstring* user_sid); 57 BASE_EXPORT bool GetUserSidString(std::wstring* user_sid);
52 58
53 // Returns true if the shift key is currently pressed. 59 // Returns true if the shift key is currently pressed.
54 BASE_EXPORT bool IsShiftPressed(); 60 BASE_EXPORT bool IsShiftPressed();
55 61
56 // Returns true if the ctrl key is currently pressed. 62 // Returns true if the ctrl key is currently pressed.
57 BASE_EXPORT bool IsCtrlPressed(); 63 BASE_EXPORT bool IsCtrlPressed();
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // This is necessary to set compatible struct sizes for different versions 103 // This is necessary to set compatible struct sizes for different versions
98 // of certain Windows APIs (e.g. SystemParametersInfo). 104 // of certain Windows APIs (e.g. SystemParametersInfo).
99 #define SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(struct_name, member) \ 105 #define SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(struct_name, member) \
100 offsetof(struct_name, member) + \ 106 offsetof(struct_name, member) + \
101 (sizeof static_cast<struct_name*>(NULL)->member) 107 (sizeof static_cast<struct_name*>(NULL)->member)
102 108
103 } // namespace win 109 } // namespace win
104 } // namespace base 110 } // namespace base
105 111
106 #endif // BASE_WIN_WIN_UTIL_H_ 112 #endif // BASE_WIN_WIN_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | base/win/win_util.cc » ('j') | chrome/browser/resources/options/browser_options.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698