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

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

Issue 10910238: ash: Fix blank window when maximizing an app (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | « chrome/browser/ui/views/frame/browser_frame_aura.cc ('k') | ui/views/window/non_client_view.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 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 740
741 void NativeWidgetWin::HandleVisibilityChanged(bool visible) { 741 void NativeWidgetWin::HandleVisibilityChanged(bool visible) {
742 delegate_->OnNativeWidgetVisibilityChanged(visible); 742 delegate_->OnNativeWidgetVisibilityChanged(visible);
743 } 743 }
744 744
745 void NativeWidgetWin::HandleClientSizeChanged(const gfx::Size& new_size) { 745 void NativeWidgetWin::HandleClientSizeChanged(const gfx::Size& new_size) {
746 delegate_->OnNativeWidgetSizeChanged(new_size); 746 delegate_->OnNativeWidgetSizeChanged(new_size);
747 } 747 }
748 748
749 void NativeWidgetWin::HandleFrameChanged() { 749 void NativeWidgetWin::HandleFrameChanged() {
750 GetWidget()->non_client_view()->UpdateFrame(); 750 // Replace the frame and layout the contents.
751 GetWidget()->non_client_view()->UpdateFrame(true);
751 } 752 }
752 753
753 void NativeWidgetWin::HandleNativeFocus(HWND last_focused_window) { 754 void NativeWidgetWin::HandleNativeFocus(HWND last_focused_window) {
754 delegate_->OnNativeFocus(last_focused_window); 755 delegate_->OnNativeFocus(last_focused_window);
755 InputMethod* input_method = GetInputMethod(); 756 InputMethod* input_method = GetInputMethod();
756 if (input_method) 757 if (input_method)
757 input_method->OnFocus(); 758 input_method->OnFocus();
758 } 759 }
759 760
760 void NativeWidgetWin::HandleNativeBlur(HWND focused_window) { 761 void NativeWidgetWin::HandleNativeBlur(HWND focused_window) {
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 // static 1107 // static
1107 bool NativeWidgetPrivate::IsTouchDown() { 1108 bool NativeWidgetPrivate::IsTouchDown() {
1108 // This currently isn't necessary because we're not generating touch events on 1109 // This currently isn't necessary because we're not generating touch events on
1109 // windows. When we do, this will need to be updated. 1110 // windows. When we do, this will need to be updated.
1110 return false; 1111 return false;
1111 } 1112 }
1112 1113
1113 } // namespace internal 1114 } // namespace internal
1114 1115
1115 } // namespace views 1116 } // namespace views
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame_aura.cc ('k') | ui/views/window/non_client_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698