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

Unified Diff: ui/gfx/screen_win.h

Issue 1563183008: Added capability on Windows to get the physical dimensions of your attached monitors. Also added th… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: ui/gfx/screen_win.h
diff --git a/ui/gfx/screen_win.h b/ui/gfx/screen_win.h
index b1488ae05bb850b9cfc4cfa762219b56d47ff5d0..c1746340a58306ce9be2a1d224789ebfd688eee3 100644
--- a/ui/gfx/screen_win.h
+++ b/ui/gfx/screen_win.h
@@ -5,6 +5,8 @@
#ifndef UI_GFX_SCREEN_WIN_H_
#define UI_GFX_SCREEN_WIN_H_
+#include <stdint.h>
+
#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
#include "base/macros.h"
@@ -27,6 +29,8 @@ class GFX_EXPORT ScreenWin : public Screen {
// Returns the NativeView associated with the HWND.
virtual NativeWindow GetNativeWindowFromHWND(HWND hwnd) const;
+ static int64_t GenerateDisplayId(const std::wstring& str);
scottmg 2016/01/09 01:00:05 #include <string> for std::wstring. It looks like
robliao 2016/01/11 18:42:20 Alternatively, you can do... static int64_t HashDe
Bret 2016/01/12 00:23:46 Done. I went with Scott's suggestion, since displa
+
protected:
// Overridden from gfx::Screen:
gfx::Point GetCursorScreenPoint() override;

Powered by Google App Engine
This is Rietveld 408576698