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/native_widget_win.h" | 5 #include "ui/views/widget/native_widget_win.h" |
6 | 6 |
7 #include <dwmapi.h> | 7 #include <dwmapi.h> |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 message_handler_->FlashFrame(flash); | 440 message_handler_->FlashFrame(flash); |
441 } | 441 } |
442 | 442 |
443 bool NativeWidgetWin::IsAccessibleWidget() const { | 443 bool NativeWidgetWin::IsAccessibleWidget() const { |
444 return screen_reader_active_; | 444 return screen_reader_active_; |
445 } | 445 } |
446 | 446 |
447 void NativeWidgetWin::RunShellDrag(View* view, | 447 void NativeWidgetWin::RunShellDrag(View* view, |
448 const ui::OSExchangeData& data, | 448 const ui::OSExchangeData& data, |
449 const gfx::Point& location, | 449 const gfx::Point& location, |
450 int operation) { | 450 int operation, |
451 views::RunShellDrag(NULL, data, location, operation); | 451 ui::DragDropTypes::DragEventSource source) { |
| 452 views::RunShellDrag(NULL, data, location, operation, source); |
452 } | 453 } |
453 | 454 |
454 void NativeWidgetWin::SchedulePaintInRect(const gfx::Rect& rect) { | 455 void NativeWidgetWin::SchedulePaintInRect(const gfx::Rect& rect) { |
455 message_handler_->SchedulePaintInRect(rect); | 456 message_handler_->SchedulePaintInRect(rect); |
456 } | 457 } |
457 | 458 |
458 void NativeWidgetWin::SetCursor(gfx::NativeCursor cursor) { | 459 void NativeWidgetWin::SetCursor(gfx::NativeCursor cursor) { |
459 message_handler_->SetCursor(cursor); | 460 message_handler_->SetCursor(cursor); |
460 } | 461 } |
461 | 462 |
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1022 // static | 1023 // static |
1023 bool NativeWidgetPrivate::IsTouchDown() { | 1024 bool NativeWidgetPrivate::IsTouchDown() { |
1024 // This currently isn't necessary because we're not generating touch events on | 1025 // This currently isn't necessary because we're not generating touch events on |
1025 // windows. When we do, this will need to be updated. | 1026 // windows. When we do, this will need to be updated. |
1026 return false; | 1027 return false; |
1027 } | 1028 } |
1028 | 1029 |
1029 } // namespace internal | 1030 } // namespace internal |
1030 | 1031 |
1031 } // namespace views | 1032 } // namespace views |
OLD | NEW |