| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/ui/views/constrained_window_views.h" | 5 #include "chrome/browser/ui/views/constrained_window_views.h" |
| 6 | 6 |
| 7 #include "ui/views/widget/native_widget_win.h" | 7 #include "views/widget/native_widget_win.h" |
| 8 | 8 |
| 9 namespace { | 9 namespace { |
| 10 bool IsNonClientHitTestCode(UINT hittest) { | 10 bool IsNonClientHitTestCode(UINT hittest) { |
| 11 return hittest != HTCLIENT && hittest != HTNOWHERE && hittest != HTCLOSE; | 11 return hittest != HTCLIENT && hittest != HTNOWHERE && hittest != HTCLOSE; |
| 12 } | 12 } |
| 13 } | 13 } |
| 14 | 14 |
| 15 class NativeConstrainedWindowWin : public NativeConstrainedWindow, | 15 class NativeConstrainedWindowWin : public NativeConstrainedWindow, |
| 16 public views::NativeWidgetWin { | 16 public views::NativeWidgetWin { |
| 17 public: | 17 public: |
| (...skipping 30 matching lines...) Expand all Loading... |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 //////////////////////////////////////////////////////////////////////////////// | 50 //////////////////////////////////////////////////////////////////////////////// |
| 51 // NativeConstrainedWindow, public: | 51 // NativeConstrainedWindow, public: |
| 52 | 52 |
| 53 // static | 53 // static |
| 54 NativeConstrainedWindow* NativeConstrainedWindow::CreateNativeConstrainedWindow( | 54 NativeConstrainedWindow* NativeConstrainedWindow::CreateNativeConstrainedWindow( |
| 55 NativeConstrainedWindowDelegate* delegate) { | 55 NativeConstrainedWindowDelegate* delegate) { |
| 56 return new NativeConstrainedWindowWin(delegate); | 56 return new NativeConstrainedWindowWin(delegate); |
| 57 } | 57 } |
| OLD | NEW |