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

Side by Side Diff: ui/ozone/platform/drm/host/drm_window_host.cc

Issue 1412623006: Developer Feature: Add Debug Accelerators to Toggle Touchscreen/Touchpad On or Off (CrOS) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add enable/disable capability to ozone's touchscreen devices Created 5 years, 1 month 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/ozone/platform/drm/host/drm_window_host.h" 5 #include "ui/ozone/platform/drm/host/drm_window_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "ui/events/base_event_utils.h"
spang 2015/11/04 20:16:27 not needed anymore?
afakhry 2015/11/05 01:22:11 No I don't. Thanks for spotting it.
8 #include "ui/events/devices/device_data_manager.h" 9 #include "ui/events/devices/device_data_manager.h"
9 #include "ui/events/event.h" 10 #include "ui/events/event.h"
10 #include "ui/events/ozone/evdev/event_factory_evdev.h" 11 #include "ui/events/ozone/evdev/event_factory_evdev.h"
11 #include "ui/events/ozone/events_ozone.h" 12 #include "ui/events/ozone/events_ozone.h"
12 #include "ui/events/platform/platform_event_source.h" 13 #include "ui/events/platform/platform_event_source.h"
13 #include "ui/gfx/display.h" 14 #include "ui/gfx/display.h"
14 #include "ui/ozone/common/gpu/ozone_gpu_messages.h" 15 #include "ui/ozone/common/gpu/ozone_gpu_messages.h"
15 #include "ui/ozone/platform/drm/host/drm_cursor.h" 16 #include "ui/ozone/platform/drm/host/drm_cursor.h"
16 #include "ui/ozone/platform/drm/host/drm_display_host.h" 17 #include "ui/ozone/platform/drm/host/drm_display_host.h"
17 #include "ui/ozone/platform/drm/host/drm_display_host_manager.h" 18 #include "ui/ozone/platform/drm/host/drm_display_host_manager.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // Update the cursor before the window so that the cursor stays within the 204 // Update the cursor before the window so that the cursor stays within the
204 // window bounds when the window size shrinks. 205 // window bounds when the window size shrinks.
205 cursor_->CommitBoundsChange(widget_, bounds_, GetCursorConfinedBounds()); 206 cursor_->CommitBoundsChange(widget_, bounds_, GetCursorConfinedBounds());
206 sender_->Send(new OzoneGpuMsg_WindowBoundsChanged(widget_, bounds_)); 207 sender_->Send(new OzoneGpuMsg_WindowBoundsChanged(widget_, bounds_));
207 208
208 if (overlay_candidates_host_) 209 if (overlay_candidates_host_)
209 overlay_candidates_host_->ResetCache(); 210 overlay_candidates_host_->ResetCache();
210 } 211 }
211 212
212 } // namespace ui 213 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698