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

Side by Side Diff: services/ui/ws/window_manager_state.cc

Issue 2786693002: Add PointerDetails to ui::MouseEvent's constructors (Closed)
Patch Set: mouse constructor Created 3 years, 8 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 | « services/ui/ws/event_dispatcher.cc ('k') | ui/events/blink/web_input_event_builders_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "services/ui/ws/window_manager_state.h" 5 #include "services/ui/ws/window_manager_state.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 void WindowManagerState::ReleaseCaptureBlockedByAnyModalWindow() { 177 void WindowManagerState::ReleaseCaptureBlockedByAnyModalWindow() {
178 event_dispatcher_.ReleaseCaptureBlockedByAnyModalWindow(); 178 event_dispatcher_.ReleaseCaptureBlockedByAnyModalWindow();
179 } 179 }
180 180
181 void WindowManagerState::SetDragDropSourceWindow( 181 void WindowManagerState::SetDragDropSourceWindow(
182 DragSource* drag_source, 182 DragSource* drag_source,
183 ServerWindow* window, 183 ServerWindow* window,
184 DragTargetConnection* source_connection, 184 DragTargetConnection* source_connection,
185 const std::unordered_map<std::string, std::vector<uint8_t>>& drag_data, 185 const std::unordered_map<std::string, std::vector<uint8_t>>& drag_data,
186 uint32_t drag_operation) { 186 uint32_t drag_operation) {
187 int32_t drag_pointer = PointerEvent::kMousePointerId; 187 int32_t drag_pointer = MouseEvent::kMousePointerId;
188 if (in_flight_event_details_ && 188 if (in_flight_event_details_ &&
189 in_flight_event_details_->event->IsPointerEvent()) { 189 in_flight_event_details_->event->IsPointerEvent()) {
190 drag_pointer = 190 drag_pointer =
191 in_flight_event_details_->event->AsPointerEvent()->pointer_details().id; 191 in_flight_event_details_->event->AsPointerEvent()->pointer_details().id;
192 } else { 192 } else {
193 NOTIMPLEMENTED() << "Set drag drop set up during something other than a " 193 NOTIMPLEMENTED() << "Set drag drop set up during something other than a "
194 << "pointer event; rejecting drag."; 194 << "pointer event; rejecting drag.";
195 drag_source->OnDragCompleted(false, ui::mojom::kDropEffectNone); 195 drag_source->OnDragCompleted(false, ui::mojom::kDropEffectNone);
196 return; 196 return;
197 } 197 }
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 window->RemoveObserver(this); 702 window->RemoveObserver(this);
703 orphaned_window_manager_display_roots_.erase(iter); 703 orphaned_window_manager_display_roots_.erase(iter);
704 return; 704 return;
705 } 705 }
706 } 706 }
707 NOTREACHED(); 707 NOTREACHED();
708 } 708 }
709 709
710 } // namespace ws 710 } // namespace ws
711 } // namespace ui 711 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/event_dispatcher.cc ('k') | ui/events/blink/web_input_event_builders_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698