| 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 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 740 | 740 |
| 741 void NativeWidgetWin::HandleVisibilityChanged(bool visible) { | 741 void NativeWidgetWin::HandleVisibilityChanged(bool visible) { |
| 742 delegate_->OnNativeWidgetVisibilityChanged(visible); | 742 delegate_->OnNativeWidgetVisibilityChanged(visible); |
| 743 } | 743 } |
| 744 | 744 |
| 745 void NativeWidgetWin::HandleClientSizeChanged(const gfx::Size& new_size) { | 745 void NativeWidgetWin::HandleClientSizeChanged(const gfx::Size& new_size) { |
| 746 delegate_->OnNativeWidgetSizeChanged(new_size); | 746 delegate_->OnNativeWidgetSizeChanged(new_size); |
| 747 } | 747 } |
| 748 | 748 |
| 749 void NativeWidgetWin::HandleFrameChanged() { | 749 void NativeWidgetWin::HandleFrameChanged() { |
| 750 GetWidget()->non_client_view()->UpdateFrame(); | 750 // Replace the frame and layout the contents. |
| 751 GetWidget()->non_client_view()->UpdateFrame(true); |
| 751 } | 752 } |
| 752 | 753 |
| 753 void NativeWidgetWin::HandleNativeFocus(HWND last_focused_window) { | 754 void NativeWidgetWin::HandleNativeFocus(HWND last_focused_window) { |
| 754 delegate_->OnNativeFocus(last_focused_window); | 755 delegate_->OnNativeFocus(last_focused_window); |
| 755 InputMethod* input_method = GetInputMethod(); | 756 InputMethod* input_method = GetInputMethod(); |
| 756 if (input_method) | 757 if (input_method) |
| 757 input_method->OnFocus(); | 758 input_method->OnFocus(); |
| 758 } | 759 } |
| 759 | 760 |
| 760 void NativeWidgetWin::HandleNativeBlur(HWND focused_window) { | 761 void NativeWidgetWin::HandleNativeBlur(HWND focused_window) { |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1106 // static | 1107 // static |
| 1107 bool NativeWidgetPrivate::IsTouchDown() { | 1108 bool NativeWidgetPrivate::IsTouchDown() { |
| 1108 // This currently isn't necessary because we're not generating touch events on | 1109 // This currently isn't necessary because we're not generating touch events on |
| 1109 // windows. When we do, this will need to be updated. | 1110 // windows. When we do, this will need to be updated. |
| 1110 return false; | 1111 return false; |
| 1111 } | 1112 } |
| 1112 | 1113 |
| 1113 } // namespace internal | 1114 } // namespace internal |
| 1114 | 1115 |
| 1115 } // namespace views | 1116 } // namespace views |
| OLD | NEW |