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

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

Issue 101573006: Changes MouseEvent constructor to take changed_button_flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test; needs updated expectations as mouse entered wasnt sent before because of env::mouse_butto… Created 7 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 | Annotate | Revision Log
« no previous file with comments | « ui/views/widget/root_view.cc ('k') | ui/views/widget/widget_interactive_uitest.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 (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/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 959
960 gfx::Rect Widget::GetWorkAreaBoundsInScreen() const { 960 gfx::Rect Widget::GetWorkAreaBoundsInScreen() const {
961 return native_widget_->GetWorkAreaBoundsInScreen(); 961 return native_widget_->GetWorkAreaBoundsInScreen();
962 } 962 }
963 963
964 void Widget::SynthesizeMouseMoveEvent() { 964 void Widget::SynthesizeMouseMoveEvent() {
965 last_mouse_event_was_move_ = false; 965 last_mouse_event_was_move_ = false;
966 ui::MouseEvent mouse_event(ui::ET_MOUSE_MOVED, 966 ui::MouseEvent mouse_event(ui::ET_MOUSE_MOVED,
967 last_mouse_event_position_, 967 last_mouse_event_position_,
968 last_mouse_event_position_, 968 last_mouse_event_position_,
969 ui::EF_IS_SYNTHESIZED); 969 ui::EF_IS_SYNTHESIZED, 0);
970 root_view_->OnMouseMoved(mouse_event); 970 root_view_->OnMouseMoved(mouse_event);
971 } 971 }
972 972
973 void Widget::OnRootViewLayout() { 973 void Widget::OnRootViewLayout() {
974 native_widget_->OnRootViewLayout(); 974 native_widget_->OnRootViewLayout();
975 } 975 }
976 976
977 void Widget::OnOwnerClosing() { 977 void Widget::OnOwnerClosing() {
978 } 978 }
979 979
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
1430 1430
1431 //////////////////////////////////////////////////////////////////////////////// 1431 ////////////////////////////////////////////////////////////////////////////////
1432 // internal::NativeWidgetPrivate, NativeWidget implementation: 1432 // internal::NativeWidgetPrivate, NativeWidget implementation:
1433 1433
1434 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1434 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1435 return this; 1435 return this;
1436 } 1436 }
1437 1437
1438 } // namespace internal 1438 } // namespace internal
1439 } // namespace views 1439 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/root_view.cc ('k') | ui/views/widget/widget_interactive_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698