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

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

Issue 2694213003: mash: wires up shadows for mash (Closed)
Patch Set: cleanup Created 3 years, 10 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
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/memory/ptr_util.h" 7 #include "base/memory/ptr_util.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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 } 475 }
476 476
477 bool DesktopWindowTreeHostWin::ShouldUpdateWindowTransparency() const { 477 bool DesktopWindowTreeHostWin::ShouldUpdateWindowTransparency() const {
478 return true; 478 return true;
479 } 479 }
480 480
481 bool DesktopWindowTreeHostWin::ShouldUseDesktopNativeCursorManager() const { 481 bool DesktopWindowTreeHostWin::ShouldUseDesktopNativeCursorManager() const {
482 return true; 482 return true;
483 } 483 }
484 484
485 bool DesktopWindowTreeHostWin::ShouldCreateVisibiltyController() const {
486 return false;
msw 2017/02/15 01:37:29 I guess the wm shadow (and other VisibilityControl
sky 2017/02/15 03:58:25 This is wrong, it should be true.
487 }
488
485 //////////////////////////////////////////////////////////////////////////////// 489 ////////////////////////////////////////////////////////////////////////////////
486 // DesktopWindowTreeHostWin, WindowTreeHost implementation: 490 // DesktopWindowTreeHostWin, WindowTreeHost implementation:
487 491
488 ui::EventSource* DesktopWindowTreeHostWin::GetEventSource() { 492 ui::EventSource* DesktopWindowTreeHostWin::GetEventSource() {
489 return this; 493 return this;
490 } 494 }
491 495
492 gfx::AcceleratedWidget DesktopWindowTreeHostWin::GetAcceleratedWidget() { 496 gfx::AcceleratedWidget DesktopWindowTreeHostWin::GetAcceleratedWidget() {
493 return message_handler_->hwnd(); 497 return message_handler_->hwnd();
494 } 498 }
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 996
993 // static 997 // static
994 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( 998 DesktopWindowTreeHost* DesktopWindowTreeHost::Create(
995 internal::NativeWidgetDelegate* native_widget_delegate, 999 internal::NativeWidgetDelegate* native_widget_delegate,
996 DesktopNativeWidgetAura* desktop_native_widget_aura) { 1000 DesktopNativeWidgetAura* desktop_native_widget_aura) {
997 return new DesktopWindowTreeHostWin(native_widget_delegate, 1001 return new DesktopWindowTreeHostWin(native_widget_delegate,
998 desktop_native_widget_aura); 1002 desktop_native_widget_aura);
999 } 1003 }
1000 1004
1001 } // namespace views 1005 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698