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

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

Issue 2778733004: Add WindowPinType property on arua::Window (Closed)
Patch Set: WIP Created 3 years, 8 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
« ui/views/widget/widget.h ('K') | « ui/views/widget/widget.h ('k') | no next file » | 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/widget.h" 5 #include "ui/views/widget/widget.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 native_widget_->SetFullscreen(fullscreen); 712 native_widget_->SetFullscreen(fullscreen);
713 713
714 if (non_client_view_) 714 if (non_client_view_)
715 non_client_view_->Layout(); 715 non_client_view_->Layout();
716 } 716 }
717 717
718 bool Widget::IsFullscreen() const { 718 bool Widget::IsFullscreen() const {
719 return native_widget_->IsFullscreen(); 719 return native_widget_->IsFullscreen();
720 } 720 }
721 721
722 void Widget::Pin(bool trusted) {
723 native_widget_->Pin(trusted);
724 }
725
726 bool Widget::IsPinned() const {
727 return native_widget_->IsPinned();
728 }
729
722 void Widget::SetOpacity(float opacity) { 730 void Widget::SetOpacity(float opacity) {
723 DCHECK(opacity >= 0.0f); 731 DCHECK(opacity >= 0.0f);
724 DCHECK(opacity <= 1.0f); 732 DCHECK(opacity <= 1.0f);
725 native_widget_->SetOpacity(opacity); 733 native_widget_->SetOpacity(opacity);
726 } 734 }
727 735
728 void Widget::FlashFrame(bool flash) { 736 void Widget::FlashFrame(bool flash) {
729 native_widget_->FlashFrame(flash); 737 native_widget_->FlashFrame(flash);
730 } 738 }
731 739
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
1567 1575
1568 //////////////////////////////////////////////////////////////////////////////// 1576 ////////////////////////////////////////////////////////////////////////////////
1569 // internal::NativeWidgetPrivate, NativeWidget implementation: 1577 // internal::NativeWidgetPrivate, NativeWidget implementation:
1570 1578
1571 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1579 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1572 return this; 1580 return this;
1573 } 1581 }
1574 1582
1575 } // namespace internal 1583 } // namespace internal
1576 } // namespace views 1584 } // namespace views
OLDNEW
« ui/views/widget/widget.h ('K') | « ui/views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698