]> khamidou — GitHub mirrors - electron.git/commitdiff
more debugging
authorKarim Hamidou <khamidou@gmail.com>
Tue, 16 Feb 2016 01:01:42 +0000 (17:01 -0800)
committerKarim Hamidou <khamidou@gmail.com>
Tue, 16 Feb 2016 01:01:42 +0000 (17:01 -0800)
atom/browser/native_window_views.cc
atom/browser/native_window_views_win.cc

index 4675386f6b681fcafd49e5e6332107d90b828a6c..67082af6d21f35ec5694d3e7e3ffef6aa01b1435 100644 (file)
@@ -256,9 +256,6 @@ NativeWindowViews::NativeWindowViews(
     ::SetWindowLong(GetAcceleratedWidget(), GWL_EXSTYLE, ex_style);
   }
 
-  RegisterTouchWindow(GetAcceleratedWidget(), 0);
-
-
 #endif
 
   // TODO(zcbenz): This was used to force using native frame on Windows 2003, we
@@ -959,6 +956,7 @@ void NativeWindowViews::HandleKeyboardEvent(
   }
 }
 
+
 gfx::Size NativeWindowViews::GetMinimumSize() {
   return NativeWindow::GetMinimumSize();
 }
@@ -967,6 +965,10 @@ gfx::Size NativeWindowViews::GetMaximumSize() {
   return NativeWindow::GetMaximumSize();
 }
 
+void NativeWindowViews::OnGestureEvent(GestureEvent* event) {
+  puts("Got gesture event");
+}
+
 bool NativeWindowViews::AcceleratorPressed(const ui::Accelerator& accelerator) {
   return accelerator_util::TriggerAcceleratorTableCommand(
       &accelerator_table_, accelerator);
index 2df6ebfe9214513913bce1242cf53c830a283eca..9e1844c875053582e1621d7d8cee4163f2a2409b 100644 (file)
@@ -86,10 +86,6 @@ bool NativeWindowViews::PreHandleMSG(
 
   BOOL bResult = FALSE;
 
-  if(!IsMouseInPointerEnabled()) {
-    EnableMouseInPointer(true);
-  }
-
   switch (message) {
     case WM_COMMAND:
       // Handle thumbar button click message.
@@ -122,11 +118,6 @@ bool NativeWindowViews::PreHandleMSG(
         return false;
     }
 
-    case WM_TOUCH: {
-        puts("WM_TOUCH");
-        return false;
-    }
-
     default:
       return false;
   }