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

Side by Side Diff: ui/views/win/hwnd_message_handler.cc

Issue 2183973002: Fix for an annoying ASSERT in blink when we tap on an editable portiion of the page Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "ui/views/win/hwnd_message_handler.h" 5 #include "ui/views/win/hwnd_message_handler.h"
6 6
7 #include <dwmapi.h> 7 #include <dwmapi.h>
8 #include <oleacc.h> 8 #include <oleacc.h>
9 #include <shellapi.h> 9 #include <shellapi.h>
10 #include <tchar.h> 10 #include <tchar.h>
(...skipping 2612 matching lines...) Expand 10 before | Expand all | Expand 10 after
2623 // to notify our children too, since we can have MDI child windows who need to 2623 // to notify our children too, since we can have MDI child windows who need to
2624 // update their appearance. 2624 // update their appearance.
2625 EnumChildWindows(hwnd(), &SendDwmCompositionChanged, NULL); 2625 EnumChildWindows(hwnd(), &SendDwmCompositionChanged, NULL);
2626 } 2626 }
2627 2627
2628 void HWNDMessageHandler::GenerateTouchEvent(ui::EventType event_type, 2628 void HWNDMessageHandler::GenerateTouchEvent(ui::EventType event_type,
2629 const gfx::Point& point, 2629 const gfx::Point& point,
2630 unsigned int id, 2630 unsigned int id,
2631 base::TimeTicks time_stamp, 2631 base::TimeTicks time_stamp,
2632 TouchEvents* touch_events) { 2632 TouchEvents* touch_events) {
2633 ui::TouchEvent event(event_type, point, id, time_stamp); 2633 ui::TouchEvent
2634 event(event_type, point, 0, id, time_stamp, 0.0f, 0.0f, 0.0f, 0);
2634 2635
2635 event.set_flags(ui::GetModifiersFromKeyState()); 2636 event.set_flags(ui::GetModifiersFromKeyState());
2636 2637
2637 event.latency()->AddLatencyNumberWithTimestamp( 2638 event.latency()->AddLatencyNumberWithTimestamp(
2638 ui::INPUT_EVENT_LATENCY_ORIGINAL_COMPONENT, 2639 ui::INPUT_EVENT_LATENCY_ORIGINAL_COMPONENT,
2639 0, 2640 0,
2640 0, 2641 0,
2641 time_stamp, 2642 time_stamp,
2642 1); 2643 1);
2643 2644
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
2772 MONITORINFO monitor_info = {sizeof(monitor_info)}; 2773 MONITORINFO monitor_info = {sizeof(monitor_info)};
2773 GetMonitorInfo(MonitorFromWindow(hwnd(), MONITOR_DEFAULTTOPRIMARY), 2774 GetMonitorInfo(MonitorFromWindow(hwnd(), MONITOR_DEFAULTTOPRIMARY),
2774 &monitor_info); 2775 &monitor_info);
2775 gfx::Rect shrunk_rect(monitor_info.rcMonitor); 2776 gfx::Rect shrunk_rect(monitor_info.rcMonitor);
2776 shrunk_rect.set_height(shrunk_rect.height() - 1); 2777 shrunk_rect.set_height(shrunk_rect.height() - 1);
2777 background_fullscreen_hack_ = true; 2778 background_fullscreen_hack_ = true;
2778 SetBoundsInternal(shrunk_rect, false); 2779 SetBoundsInternal(shrunk_rect, false);
2779 } 2780 }
2780 2781
2781 } // namespace views 2782 } // namespace views
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698