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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc

Issue 484963002: Fix a long standing painting problem seen in the tabstrip on Windows Desktop Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review comments Created 6 years, 4 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 | « no previous file | ui/views/win/hwnd_message_handler.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/desktop_aura/desktop_window_tree_host_win.h" 5 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h"
6 6
7 #include "base/win/metro.h" 7 #include "base/win/metro.h"
8 #include "third_party/skia/include/core/SkPath.h" 8 #include "third_party/skia/include/core/SkPath.h"
9 #include "third_party/skia/include/core/SkRegion.h" 9 #include "third_party/skia/include/core/SkRegion.h"
10 #include "ui/aura/client/aura_constants.h" 10 #include "ui/aura/client/aura_constants.h"
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 // subclass. 375 // subclass.
376 return ShouldUseNativeFrame(); 376 return ShouldUseNativeFrame();
377 } 377 }
378 378
379 void DesktopWindowTreeHostWin::FrameTypeChanged() { 379 void DesktopWindowTreeHostWin::FrameTypeChanged() {
380 message_handler_->FrameTypeChanged(); 380 message_handler_->FrameTypeChanged();
381 SetWindowTransparency(); 381 SetWindowTransparency();
382 } 382 }
383 383
384 void DesktopWindowTreeHostWin::SetFullscreen(bool fullscreen) { 384 void DesktopWindowTreeHostWin::SetFullscreen(bool fullscreen) {
385 message_handler_->fullscreen_handler()->SetFullscreen(fullscreen); 385 message_handler_->SetFullscreen(fullscreen);
386 // TODO(sky): workaround for ScopedFullscreenVisibility showing window 386 // TODO(sky): workaround for ScopedFullscreenVisibility showing window
387 // directly. Instead of this should listen for visibility changes and then 387 // directly. Instead of this should listen for visibility changes and then
388 // update window. 388 // update window.
389 if (message_handler_->IsVisible() && !content_window_->TargetVisibility()) 389 if (message_handler_->IsVisible() && !content_window_->TargetVisibility())
390 content_window_->Show(); 390 content_window_->Show();
391 SetWindowTransparency(); 391 SetWindowTransparency();
392 } 392 }
393 393
394 bool DesktopWindowTreeHostWin::IsFullscreen() const { 394 bool DesktopWindowTreeHostWin::IsFullscreen() const {
395 return message_handler_->fullscreen_handler()->fullscreen(); 395 return message_handler_->fullscreen_handler()->fullscreen();
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 939
940 // static 940 // static
941 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( 941 DesktopWindowTreeHost* DesktopWindowTreeHost::Create(
942 internal::NativeWidgetDelegate* native_widget_delegate, 942 internal::NativeWidgetDelegate* native_widget_delegate,
943 DesktopNativeWidgetAura* desktop_native_widget_aura) { 943 DesktopNativeWidgetAura* desktop_native_widget_aura) {
944 return new DesktopWindowTreeHostWin(native_widget_delegate, 944 return new DesktopWindowTreeHostWin(native_widget_delegate,
945 desktop_native_widget_aura); 945 desktop_native_widget_aura);
946 } 946 }
947 947
948 } // namespace views 948 } // namespace views
OLDNEW
« no previous file with comments | « no previous file | ui/views/win/hwnd_message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698