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

Side by Side Diff: content/common/cursors/webcursor.h

Issue 538333002: gn/linux: warnings as errors, turn on Wextra (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 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
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 #ifndef CONTENT_COMMON_CURSORS_WEBCURSOR_H_ 5 #ifndef CONTENT_COMMON_CURSORS_WEBCURSOR_H_
6 #define CONTENT_COMMON_CURSORS_WEBCURSOR_H_ 6 #define CONTENT_COMMON_CURSORS_WEBCURSOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 gfx::NativeCursor GetNativeCursor(); 97 gfx::NativeCursor GetNativeCursor();
98 98
99 #if defined(OS_WIN) 99 #if defined(OS_WIN)
100 // Initialize this from the given Windows cursor. The caller must ensure that 100 // Initialize this from the given Windows cursor. The caller must ensure that
101 // the HCURSOR remains valid by not invoking the DestroyCursor/DestroyIcon 101 // the HCURSOR remains valid by not invoking the DestroyCursor/DestroyIcon
102 // APIs on it. 102 // APIs on it.
103 void InitFromExternalCursor(HCURSOR handle); 103 void InitFromExternalCursor(HCURSOR handle);
104 #endif 104 #endif
105 105
106 #if defined(USE_AURA) 106 #if defined(USE_AURA)
107 const ui::PlatformCursor GetPlatformCursor(); 107 ui::PlatformCursor GetPlatformCursor();
108 108
109 // Updates |device_scale_factor_| and |rotation_| based on |display|. 109 // Updates |device_scale_factor_| and |rotation_| based on |display|.
110 void SetDisplayInfo(const gfx::Display& display); 110 void SetDisplayInfo(const gfx::Display& display);
111 111
112 #elif defined(OS_WIN) 112 #elif defined(OS_WIN)
113 // Returns a HCURSOR representing the current WebCursor instance. 113 // Returns a HCURSOR representing the current WebCursor instance.
114 // The ownership of the HCURSOR (does not apply to external cursors) remains 114 // The ownership of the HCURSOR (does not apply to external cursors) remains
115 // with the WebCursor instance. 115 // with the WebCursor instance.
116 HCURSOR GetCursor(HINSTANCE module_handle); 116 HCURSOR GetCursor(HINSTANCE module_handle);
117 117
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 #endif 178 #endif
179 179
180 #if defined(USE_OZONE) 180 #if defined(USE_OZONE)
181 gfx::Display::Rotation rotation_; 181 gfx::Display::Rotation rotation_;
182 #endif 182 #endif
183 }; 183 };
184 184
185 } // namespace content 185 } // namespace content
186 186
187 #endif // CONTENT_COMMON_CURSORS_WEBCURSOR_H_ 187 #endif // CONTENT_COMMON_CURSORS_WEBCURSOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item.h ('k') | content/common/cursors/webcursor_aurawin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698