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

Side by Side Diff: ui/views/widget/widget.cc

Issue 1536493002: Working proof of concept of select to speak (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Drag across multiple objects Created 5 years 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 | « ui/views/widget/widget.h ('k') | 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/widget/widget.h" 5 #include "ui/views/widget/widget.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 if (root_view && root_view->OnMouseWheel( 1261 if (root_view && root_view->OnMouseWheel(
1262 static_cast<const ui::MouseWheelEvent&>(*event))) 1262 static_cast<const ui::MouseWheelEvent&>(*event)))
1263 event->SetHandled(); 1263 event->SetHandled();
1264 return; 1264 return;
1265 1265
1266 default: 1266 default:
1267 return; 1267 return;
1268 } 1268 }
1269 } 1269 }
1270 1270
1271 void Widget::OnAccessibilityMouseEvent(ui::MouseEvent* event) {
1272 View* root_view = GetRootView();
1273 if (root_view)
1274 root_view->OnAccessibilityMouseEvent(event);
1275 }
1276
1271 void Widget::OnMouseCaptureLost() { 1277 void Widget::OnMouseCaptureLost() {
1272 if (ignore_capture_loss_) 1278 if (ignore_capture_loss_)
1273 return; 1279 return;
1274 1280
1275 View* root_view = GetRootView(); 1281 View* root_view = GetRootView();
1276 if (root_view) 1282 if (root_view)
1277 root_view->OnMouseCaptureLost(); 1283 root_view->OnMouseCaptureLost();
1278 is_mouse_button_pressed_ = false; 1284 is_mouse_button_pressed_ = false;
1279 } 1285 }
1280 1286
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
1504 1510
1505 //////////////////////////////////////////////////////////////////////////////// 1511 ////////////////////////////////////////////////////////////////////////////////
1506 // internal::NativeWidgetPrivate, NativeWidget implementation: 1512 // internal::NativeWidgetPrivate, NativeWidget implementation:
1507 1513
1508 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1514 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1509 return this; 1515 return this;
1510 } 1516 }
1511 1517
1512 } // namespace internal 1518 } // namespace internal
1513 } // namespace views 1519 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698