| OLD | NEW |
| 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/macros.h" | 8 #include "base/macros.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 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 787 | 787 |
| 788 // If the view is removed during the drag operation, dragged_view_ is set to | 788 // If the view is removed during the drag operation, dragged_view_ is set to |
| 789 // NULL. | 789 // NULL. |
| 790 if (view && dragged_view_ == view) { | 790 if (view && dragged_view_ == view) { |
| 791 dragged_view_ = NULL; | 791 dragged_view_ = NULL; |
| 792 view->OnDragDone(); | 792 view->OnDragDone(); |
| 793 } | 793 } |
| 794 OnDragComplete(); | 794 OnDragComplete(); |
| 795 } | 795 } |
| 796 | 796 |
| 797 void Widget::OnDragEnter() {} |
| 798 |
| 799 void Widget::OnDragExit() {} |
| 800 |
| 797 void Widget::SchedulePaintInRect(const gfx::Rect& rect) { | 801 void Widget::SchedulePaintInRect(const gfx::Rect& rect) { |
| 798 native_widget_->SchedulePaintInRect(rect); | 802 native_widget_->SchedulePaintInRect(rect); |
| 799 } | 803 } |
| 800 | 804 |
| 801 void Widget::SetCursor(gfx::NativeCursor cursor) { | 805 void Widget::SetCursor(gfx::NativeCursor cursor) { |
| 802 native_widget_->SetCursor(cursor); | 806 native_widget_->SetCursor(cursor); |
| 803 } | 807 } |
| 804 | 808 |
| 805 bool Widget::IsMouseEventsEnabled() const { | 809 bool Widget::IsMouseEventsEnabled() const { |
| 806 return native_widget_->IsMouseEventsEnabled(); | 810 return native_widget_->IsMouseEventsEnabled(); |
| (...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1491 | 1495 |
| 1492 //////////////////////////////////////////////////////////////////////////////// | 1496 //////////////////////////////////////////////////////////////////////////////// |
| 1493 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1497 // internal::NativeWidgetPrivate, NativeWidget implementation: |
| 1494 | 1498 |
| 1495 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1499 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
| 1496 return this; | 1500 return this; |
| 1497 } | 1501 } |
| 1498 | 1502 |
| 1499 } // namespace internal | 1503 } // namespace internal |
| 1500 } // namespace views | 1504 } // namespace views |
| OLD | NEW |