Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: ui/views/widget/native_widget_win.cc

Issue 26427002: Add always-on-top property to app windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/widget/native_widget_win.h ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_win.h ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698