| 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 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 875 GetWidget()->widget_delegate(), delegate_); | 875 GetWidget()->widget_delegate(), delegate_); |
| 876 | 876 |
| 877 has_non_client_view_ = Widget::RequiresNonClientView(params.type); | 877 has_non_client_view_ = Widget::RequiresNonClientView(params.type); |
| 878 message_handler_->set_remove_standard_frame(params.remove_standard_frame); | 878 message_handler_->set_remove_standard_frame(params.remove_standard_frame); |
| 879 message_handler_->set_use_system_default_icon(params.use_system_default_icon); | 879 message_handler_->set_use_system_default_icon(params.use_system_default_icon); |
| 880 } | 880 } |
| 881 | 881 |
| 882 //////////////////////////////////////////////////////////////////////////////// | 882 //////////////////////////////////////////////////////////////////////////////// |
| 883 // Widget, public: | 883 // Widget, public: |
| 884 | 884 |
| 885 // static | |
| 886 void Widget::NotifyLocaleChanged() { | |
| 887 NOTIMPLEMENTED(); | |
| 888 } | |
| 889 | |
| 890 namespace { | 885 namespace { |
| 891 BOOL CALLBACK WindowCallbackProc(HWND hwnd, LPARAM lParam) { | 886 BOOL CALLBACK WindowCallbackProc(HWND hwnd, LPARAM lParam) { |
| 892 Widget* widget = Widget::GetWidgetForNativeView(hwnd); | 887 Widget* widget = Widget::GetWidgetForNativeView(hwnd); |
| 893 if (widget && widget->is_secondary_widget()) | 888 if (widget && widget->is_secondary_widget()) |
| 894 widget->Close(); | 889 widget->Close(); |
| 895 return TRUE; | 890 return TRUE; |
| 896 } | 891 } |
| 897 } // namespace | 892 } // namespace |
| 898 | 893 |
| 899 // static | 894 // static |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1055 // static | 1050 // static |
| 1056 bool NativeWidgetPrivate::IsTouchDown() { | 1051 bool NativeWidgetPrivate::IsTouchDown() { |
| 1057 // This currently isn't necessary because we're not generating touch events on | 1052 // This currently isn't necessary because we're not generating touch events on |
| 1058 // windows. When we do, this will need to be updated. | 1053 // windows. When we do, this will need to be updated. |
| 1059 return false; | 1054 return false; |
| 1060 } | 1055 } |
| 1061 | 1056 |
| 1062 } // namespace internal | 1057 } // namespace internal |
| 1063 | 1058 |
| 1064 } // namespace views | 1059 } // namespace views |
| OLD | NEW |