| OLD | NEW |
| 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 #include "content/browser/renderer_host/render_widget_host_view_aura.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 ++i) { | 129 ++i) { |
| 130 event->touches[i] = event->touches[i + 1]; | 130 event->touches[i] = event->touches[i + 1]; |
| 131 } | 131 } |
| 132 } | 132 } |
| 133 | 133 |
| 134 bool CanRendererHandleEvent(const ui::MouseEvent* event) { | 134 bool CanRendererHandleEvent(const ui::MouseEvent* event) { |
| 135 if (event->type() == ui::ET_MOUSE_CAPTURE_CHANGED) | 135 if (event->type() == ui::ET_MOUSE_CAPTURE_CHANGED) |
| 136 return false; | 136 return false; |
| 137 | 137 |
| 138 #if defined(OS_WIN) | 138 #if defined(OS_WIN) |
| 139 // Renderer cannot handle WM_XBUTTON events. | 139 // Renderer cannot handle WM_XBUTTON or NC events. |
| 140 switch (event->native_event().message) { | 140 switch (event->native_event().message) { |
| 141 case WM_XBUTTONDOWN: | 141 case WM_XBUTTONDOWN: |
| 142 case WM_XBUTTONUP: | 142 case WM_XBUTTONUP: |
| 143 case WM_XBUTTONDBLCLK: | 143 case WM_XBUTTONDBLCLK: |
| 144 case WM_NCMOUSEMOVE: |
| 144 case WM_NCXBUTTONDOWN: | 145 case WM_NCXBUTTONDOWN: |
| 145 case WM_NCXBUTTONUP: | 146 case WM_NCXBUTTONUP: |
| 146 case WM_NCXBUTTONDBLCLK: | 147 case WM_NCXBUTTONDBLCLK: |
| 147 return false; | 148 return false; |
| 148 default: | 149 default: |
| 149 break; | 150 break; |
| 150 } | 151 } |
| 151 #endif | 152 #endif |
| 152 return true; | 153 return true; |
| 153 } | 154 } |
| (...skipping 1877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2031 RenderWidgetHost* widget) { | 2032 RenderWidgetHost* widget) { |
| 2032 return new RenderWidgetHostViewAura(widget); | 2033 return new RenderWidgetHostViewAura(widget); |
| 2033 } | 2034 } |
| 2034 | 2035 |
| 2035 // static | 2036 // static |
| 2036 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { | 2037 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { |
| 2037 GetScreenInfoForWindow(results, NULL); | 2038 GetScreenInfoForWindow(results, NULL); |
| 2038 } | 2039 } |
| 2039 | 2040 |
| 2040 } // namespace content | 2041 } // namespace content |
| OLD | NEW |