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 38073004: Not moving a docked window when restoring a previously maximized window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Not moving a docked window when restoring a previously maximized window (delegating IsDocked to non… 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/widget.h" 5 #include "ui/views/widget/widget.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 } 683 }
684 684
685 void Widget::SetFullscreen(bool fullscreen) { 685 void Widget::SetFullscreen(bool fullscreen) {
686 native_widget_->SetFullscreen(fullscreen); 686 native_widget_->SetFullscreen(fullscreen);
687 } 687 }
688 688
689 bool Widget::IsFullscreen() const { 689 bool Widget::IsFullscreen() const {
690 return native_widget_->IsFullscreen(); 690 return native_widget_->IsFullscreen();
691 } 691 }
692 692
693 bool Widget::IsDocked() const {
694 if (!non_client_view_)
695 return false;
696 return non_client_view_->IsFrameViewDocked();
697 }
698
693 void Widget::SetOpacity(unsigned char opacity) { 699 void Widget::SetOpacity(unsigned char opacity) {
694 native_widget_->SetOpacity(opacity); 700 native_widget_->SetOpacity(opacity);
695 } 701 }
696 702
697 void Widget::SetUseDragFrame(bool use_drag_frame) { 703 void Widget::SetUseDragFrame(bool use_drag_frame) {
698 native_widget_->SetUseDragFrame(use_drag_frame); 704 native_widget_->SetUseDragFrame(use_drag_frame);
699 } 705 }
700 706
701 void Widget::FlashFrame(bool flash) { 707 void Widget::FlashFrame(bool flash) {
702 native_widget_->FlashFrame(flash); 708 native_widget_->FlashFrame(flash);
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
1430 1436
1431 //////////////////////////////////////////////////////////////////////////////// 1437 ////////////////////////////////////////////////////////////////////////////////
1432 // internal::NativeWidgetPrivate, NativeWidget implementation: 1438 // internal::NativeWidgetPrivate, NativeWidget implementation:
1433 1439
1434 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1440 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1435 return this; 1441 return this;
1436 } 1442 }
1437 1443
1438 } // namespace internal 1444 } // namespace internal
1439 } // namespace views 1445 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698