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

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

Issue 8351042: Gets disable inactive frame rendering to work correctly for aura. This (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweaks Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "views/widget/native_widget_views.h" 5 #include "views/widget/native_widget_views.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "ui/gfx/compositor/compositor.h" 8 #include "ui/gfx/compositor/compositor.h"
9 #include "ui/gfx/compositor/layer.h" 9 #include "ui/gfx/compositor/layer.h"
10 #include "ui/gfx/compositor/layer_animator.h" 10 #include "ui/gfx/compositor/layer_animator.h"
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 View::ConvertPointToView(parent_widget->GetRootView(), GetView(), point); 586 View::ConvertPointToView(parent_widget->GetRootView(), GetView(), point);
587 return true; 587 return true;
588 } 588 }
589 return false; 589 return false;
590 } 590 }
591 591
592 gfx::Rect NativeWidgetViews::GetWorkAreaBoundsInScreen() const { 592 gfx::Rect NativeWidgetViews::GetWorkAreaBoundsInScreen() const {
593 return GetParentNativeWidget()->GetWorkAreaBoundsInScreen(); 593 return GetParentNativeWidget()->GetWorkAreaBoundsInScreen();
594 } 594 }
595 595
596 void NativeWidgetViews::SetInactiveRenderingDisabled(bool value) {
597 }
598
596 //////////////////////////////////////////////////////////////////////////////// 599 ////////////////////////////////////////////////////////////////////////////////
597 // NativeWidgetViews, private: 600 // NativeWidgetViews, private:
598 601
599 internal::NativeWidgetPrivate* NativeWidgetViews::GetParentNativeWidget() { 602 internal::NativeWidgetPrivate* NativeWidgetViews::GetParentNativeWidget() {
600 Widget* containing_widget = view_ ? view_->GetWidget() : NULL; 603 Widget* containing_widget = view_ ? view_->GetWidget() : NULL;
601 return containing_widget ? static_cast<internal::NativeWidgetPrivate*>( 604 return containing_widget ? static_cast<internal::NativeWidgetPrivate*>(
602 containing_widget->native_widget()) : 605 containing_widget->native_widget()) :
603 NULL; 606 NULL;
604 } 607 }
605 608
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 } 645 }
643 default: 646 default:
644 // Everything else falls into standard client event handling. 647 // Everything else falls into standard client event handling.
645 break; 648 break;
646 } 649 }
647 } 650 }
648 return false; 651 return false;
649 } 652 }
650 653
651 } // namespace views 654 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698