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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 } | 327 } |
328 | 328 |
329 bool NativeWidgetWin::IsActive() const { | 329 bool NativeWidgetWin::IsActive() const { |
330 return message_handler_->IsActive(); | 330 return message_handler_->IsActive(); |
331 } | 331 } |
332 | 332 |
333 void NativeWidgetWin::SetAlwaysOnTop(bool on_top) { | 333 void NativeWidgetWin::SetAlwaysOnTop(bool on_top) { |
334 message_handler_->SetAlwaysOnTop(on_top); | 334 message_handler_->SetAlwaysOnTop(on_top); |
335 } | 335 } |
336 | 336 |
| 337 bool NativeWidgetWin::IsAlwaysOnTop() const { |
| 338 return message_handler_->IsAlwaysOnTop(); |
| 339 } |
| 340 |
337 void NativeWidgetWin::Maximize() { | 341 void NativeWidgetWin::Maximize() { |
338 message_handler_->Maximize(); | 342 message_handler_->Maximize(); |
339 } | 343 } |
340 | 344 |
341 void NativeWidgetWin::Minimize() { | 345 void NativeWidgetWin::Minimize() { |
342 message_handler_->Minimize(); | 346 message_handler_->Minimize(); |
343 } | 347 } |
344 | 348 |
345 bool NativeWidgetWin::IsMaximized() const { | 349 bool NativeWidgetWin::IsMaximized() const { |
346 return message_handler_->IsMaximized(); | 350 return message_handler_->IsMaximized(); |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1054 // static | 1058 // static |
1055 bool NativeWidgetPrivate::IsTouchDown() { | 1059 bool NativeWidgetPrivate::IsTouchDown() { |
1056 // This currently isn't necessary because we're not generating touch events on | 1060 // This currently isn't necessary because we're not generating touch events on |
1057 // windows. When we do, this will need to be updated. | 1061 // windows. When we do, this will need to be updated. |
1058 return false; | 1062 return false; |
1059 } | 1063 } |
1060 | 1064 |
1061 } // namespace internal | 1065 } // namespace internal |
1062 | 1066 |
1063 } // namespace views | 1067 } // namespace views |
OLD | NEW |