| 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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 } | 464 } |
| 465 | 465 |
| 466 void NativeWidgetWin::SetCursor(gfx::NativeCursor cursor) { | 466 void NativeWidgetWin::SetCursor(gfx::NativeCursor cursor) { |
| 467 message_handler_->SetCursor(cursor); | 467 message_handler_->SetCursor(cursor); |
| 468 } | 468 } |
| 469 | 469 |
| 470 void NativeWidgetWin::ClearNativeFocus() { | 470 void NativeWidgetWin::ClearNativeFocus() { |
| 471 message_handler_->ClearNativeFocus(); | 471 message_handler_->ClearNativeFocus(); |
| 472 } | 472 } |
| 473 | 473 |
| 474 void NativeWidgetWin::FocusNativeView(gfx::NativeView native_view) { | |
| 475 message_handler_->FocusHWND(native_view); | |
| 476 } | |
| 477 | |
| 478 gfx::Rect NativeWidgetWin::GetWorkAreaBoundsInScreen() const { | 474 gfx::Rect NativeWidgetWin::GetWorkAreaBoundsInScreen() const { |
| 479 return gfx::Screen::GetDisplayNearestWindow(GetNativeView()).work_area(); | 475 return gfx::Screen::GetDisplayNearestWindow(GetNativeView()).work_area(); |
| 480 } | 476 } |
| 481 | 477 |
| 482 void NativeWidgetWin::SetInactiveRenderingDisabled(bool value) { | 478 void NativeWidgetWin::SetInactiveRenderingDisabled(bool value) { |
| 483 } | 479 } |
| 484 | 480 |
| 485 Widget::MoveLoopResult NativeWidgetWin::RunMoveLoop( | 481 Widget::MoveLoopResult NativeWidgetWin::RunMoveLoop( |
| 486 const gfx::Point& drag_offset) { | 482 const gfx::Point& drag_offset) { |
| 487 return message_handler_->RunMoveLoop(drag_offset) ? | 483 return message_handler_->RunMoveLoop(drag_offset) ? |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1107 // static | 1103 // static |
| 1108 bool NativeWidgetPrivate::IsTouchDown() { | 1104 bool NativeWidgetPrivate::IsTouchDown() { |
| 1109 // This currently isn't necessary because we're not generating touch events on | 1105 // This currently isn't necessary because we're not generating touch events on |
| 1110 // windows. When we do, this will need to be updated. | 1106 // windows. When we do, this will need to be updated. |
| 1111 return false; | 1107 return false; |
| 1112 } | 1108 } |
| 1113 | 1109 |
| 1114 } // namespace internal | 1110 } // namespace internal |
| 1115 | 1111 |
| 1116 } // namespace views | 1112 } // namespace views |
| OLD | NEW |