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

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

Issue 693523003: MacViews: Put wm window animation calls behind an interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@views-clipboard
Patch Set: Created 6 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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 work_area.Inset(10, 10, 10, 10); 512 work_area.Inset(10, 10, 10, 10);
513 work_area.AdjustToFit(bounds); 513 work_area.AdjustToFit(bounds);
514 SetBounds(work_area); 514 SetBounds(work_area);
515 } 515 }
516 } 516 }
517 517
518 void Widget::SetVisibilityChangedAnimationsEnabled(bool value) { 518 void Widget::SetVisibilityChangedAnimationsEnabled(bool value) {
519 native_widget_->SetVisibilityChangedAnimationsEnabled(value); 519 native_widget_->SetVisibilityChangedAnimationsEnabled(value);
520 } 520 }
521 521
522 Widget::VisibilityAnimation* Widget::GetVisibilityAnimation() const {
523 return native_widget_->GetVisibilityAnimation();
524 }
525
522 Widget::MoveLoopResult Widget::RunMoveLoop( 526 Widget::MoveLoopResult Widget::RunMoveLoop(
523 const gfx::Vector2d& drag_offset, 527 const gfx::Vector2d& drag_offset,
524 MoveLoopSource source, 528 MoveLoopSource source,
525 MoveLoopEscapeBehavior escape_behavior) { 529 MoveLoopEscapeBehavior escape_behavior) {
526 return native_widget_->RunMoveLoop(drag_offset, source, escape_behavior); 530 return native_widget_->RunMoveLoop(drag_offset, source, escape_behavior);
527 } 531 }
528 532
529 void Widget::EndMoveLoop() { 533 void Widget::EndMoveLoop() {
530 native_widget_->EndMoveLoop(); 534 native_widget_->EndMoveLoop();
531 } 535 }
(...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after
1500 1504
1501 //////////////////////////////////////////////////////////////////////////////// 1505 ////////////////////////////////////////////////////////////////////////////////
1502 // internal::NativeWidgetPrivate, NativeWidget implementation: 1506 // internal::NativeWidgetPrivate, NativeWidget implementation:
1503 1507
1504 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1508 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1505 return this; 1509 return this;
1506 } 1510 }
1507 1511
1508 } // namespace internal 1512 } // namespace internal
1509 } // namespace views 1513 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698