Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / ui / views / widget / desktop_aura / desktop_window_tree_host_win.cc
index d184ae4..8fac698 100644 (file)
@@ -286,7 +286,7 @@ void DesktopWindowTreeHostWin::SetShape(gfx::NativeRegion native_region) {
     // See crbug.com/410593.
     gfx::NativeRegion shape = native_region;
     SkRegion device_region;
-    if (gfx::IsInHighDPIMode()) {
+    if (gfx::GetDPIScale() > 1.0) {
       shape = &device_region;
       const float& scale = gfx::GetDPIScale();
       std::vector<SkIRect> rects;
@@ -532,10 +532,6 @@ void DesktopWindowTreeHostWin::ReleaseCapture() {
   message_handler_->ReleaseCapture();
 }
 
-void DesktopWindowTreeHostWin::PostNativeEvent(
-    const base::NativeEvent& native_event) {
-}
-
 void DesktopWindowTreeHostWin::SetCursorNative(gfx::NativeCursor cursor) {
   ui::CursorLoaderWin cursor_loader;
   cursor_loader.SetPlatformCursor(&cursor);