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

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

Issue 99553008: Fix regression where the active window header was not used for apps on CrOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/widget.cc » ('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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 return GetWidget()->widget_delegate()->ShouldHandleSystemCommands(); 618 return GetWidget()->widget_delegate()->ShouldHandleSystemCommands();
619 } 619 }
620 620
621 void NativeWidgetWin::HandleAppDeactivated() { 621 void NativeWidgetWin::HandleAppDeactivated() {
622 if (IsInactiveRenderingDisabled()) { 622 if (IsInactiveRenderingDisabled()) {
623 delegate_->EnableInactiveRendering(); 623 delegate_->EnableInactiveRendering();
624 } else { 624 } else {
625 // TODO(pkotwicz): Remove need for SchedulePaint(). crbug.com/165841 625 // TODO(pkotwicz): Remove need for SchedulePaint(). crbug.com/165841
626 View* non_client_view = GetWidget()->non_client_view(); 626 View* non_client_view = GetWidget()->non_client_view();
627 if (non_client_view) 627 if (non_client_view)
628 non_client_view->SchedulePaint(); 628 non_client_view->frame_view()->SchedulePaint();
629 } 629 }
630 } 630 }
631 631
632 void NativeWidgetWin::HandleActivationChanged(bool active) { 632 void NativeWidgetWin::HandleActivationChanged(bool active) {
633 delegate_->OnNativeWidgetActivationChanged(active); 633 delegate_->OnNativeWidgetActivationChanged(active);
634 } 634 }
635 635
636 bool NativeWidgetWin::HandleAppCommand(short command) { 636 bool NativeWidgetWin::HandleAppCommand(short command) {
637 // We treat APPCOMMAND ids as an extension of our command namespace, and just 637 // We treat APPCOMMAND ids as an extension of our command namespace, and just
638 // let the delegate figure out what to do... 638 // let the delegate figure out what to do...
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 // static 1055 // static
1056 bool NativeWidgetPrivate::IsTouchDown() { 1056 bool NativeWidgetPrivate::IsTouchDown() {
1057 // This currently isn't necessary because we're not generating touch events on 1057 // This currently isn't necessary because we're not generating touch events on
1058 // windows. When we do, this will need to be updated. 1058 // windows. When we do, this will need to be updated.
1059 return false; 1059 return false;
1060 } 1060 }
1061 1061
1062 } // namespace internal 1062 } // namespace internal
1063 1063
1064 } // namespace views 1064 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698