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

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

Issue 32393002: Stack at top functionality for Aura-based windows (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Stack at top functionality for Aura-based windows Created 7 years, 1 month 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_native_widget_aura.h" 5 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "ui/aura/client/activation_client.h" 8 #include "ui/aura/client/activation_client.h"
9 #include "ui/aura/client/aura_constants.h" 9 #include "ui/aura/client/aura_constants.h"
10 #include "ui/aura/client/cursor_client.h" 10 #include "ui/aura/client/cursor_client.h"
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 557
558 void DesktopNativeWidgetAura::SetSize(const gfx::Size& size) { 558 void DesktopNativeWidgetAura::SetSize(const gfx::Size& size) {
559 if (window_) 559 if (window_)
560 desktop_root_window_host_->SetSize(size); 560 desktop_root_window_host_->SetSize(size);
561 } 561 }
562 562
563 void DesktopNativeWidgetAura::StackAbove(gfx::NativeView native_view) { 563 void DesktopNativeWidgetAura::StackAbove(gfx::NativeView native_view) {
564 } 564 }
565 565
566 void DesktopNativeWidgetAura::StackAtTop() { 566 void DesktopNativeWidgetAura::StackAtTop() {
567 if (content_window_)
568 desktop_root_window_host_->StackAtTop();
567 } 569 }
568 570
569 void DesktopNativeWidgetAura::StackBelow(gfx::NativeView native_view) { 571 void DesktopNativeWidgetAura::StackBelow(gfx::NativeView native_view) {
570 } 572 }
571 573
572 void DesktopNativeWidgetAura::SetShape(gfx::NativeRegion shape) { 574 void DesktopNativeWidgetAura::SetShape(gfx::NativeRegion shape) {
573 if (window_) 575 if (window_)
574 desktop_root_window_host_->SetShape(shape); 576 desktop_root_window_host_->SetShape(shape);
575 } 577 }
576 578
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 1026
1025 ui::EventHandler* DesktopNativeWidgetAura::GetEventHandler() { 1027 ui::EventHandler* DesktopNativeWidgetAura::GetEventHandler() {
1026 return this; 1028 return this;
1027 } 1029 }
1028 1030
1029 void DesktopNativeWidgetAura::UpdateWindowTransparency() { 1031 void DesktopNativeWidgetAura::UpdateWindowTransparency() {
1030 window_->SetTransparent(ShouldUseNativeFrame()); 1032 window_->SetTransparent(ShouldUseNativeFrame());
1031 } 1033 }
1032 1034
1033 } // namespace views 1035 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698