| 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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 return GetWidget()->widget_delegate()->ShouldHandleSystemCommands(); | 618 return GetWidget()->widget_delegate()->ShouldHandleSystemCommands(); |
| 619 } | 619 } |
| 620 | 620 |
| 621 void NativeWidgetWin::HandleAppDeactivated() { | 621 void NativeWidgetWin::HandleAppDeactivated() { |
| 622 if (IsInactiveRenderingDisabled()) { | 622 if (IsInactiveRenderingDisabled()) { |
| 623 delegate_->EnableInactiveRendering(); | 623 delegate_->EnableInactiveRendering(); |
| 624 } else { | 624 } else { |
| 625 // TODO(pkotwicz): Remove need for SchedulePaint(). crbug.com/165841 | 625 // TODO(pkotwicz): Remove need for SchedulePaint(). crbug.com/165841 |
| 626 View* non_client_view = GetWidget()->non_client_view(); | 626 View* non_client_view = GetWidget()->non_client_view(); |
| 627 if (non_client_view) | 627 if (non_client_view) |
| 628 non_client_view->SchedulePaint(); | 628 non_client_view->frame_view()->SchedulePaint(); |
| 629 } | 629 } |
| 630 } | 630 } |
| 631 | 631 |
| 632 void NativeWidgetWin::HandleActivationChanged(bool active) { | 632 void NativeWidgetWin::HandleActivationChanged(bool active) { |
| 633 delegate_->OnNativeWidgetActivationChanged(active); | 633 delegate_->OnNativeWidgetActivationChanged(active); |
| 634 } | 634 } |
| 635 | 635 |
| 636 bool NativeWidgetWin::HandleAppCommand(short command) { | 636 bool NativeWidgetWin::HandleAppCommand(short command) { |
| 637 // We treat APPCOMMAND ids as an extension of our command namespace, and just | 637 // We treat APPCOMMAND ids as an extension of our command namespace, and just |
| 638 // let the delegate figure out what to do... | 638 // let the delegate figure out what to do... |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1055 // static | 1055 // static |
| 1056 bool NativeWidgetPrivate::IsTouchDown() { | 1056 bool NativeWidgetPrivate::IsTouchDown() { |
| 1057 // This currently isn't necessary because we're not generating touch events on | 1057 // This currently isn't necessary because we're not generating touch events on |
| 1058 // windows. When we do, this will need to be updated. | 1058 // windows. When we do, this will need to be updated. |
| 1059 return false; | 1059 return false; |
| 1060 } | 1060 } |
| 1061 | 1061 |
| 1062 } // namespace internal | 1062 } // namespace internal |
| 1063 | 1063 |
| 1064 } // namespace views | 1064 } // namespace views |
| OLD | NEW |