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

Unified Diff: views/widget/root_view.cc

Issue 7273073: Animated Rotation (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Removed unnecessary include Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« views/view.cc ('K') | « views/widget/root_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/root_view.cc
diff --git a/views/widget/root_view.cc b/views/widget/root_view.cc
index 85cb53736ea5ae2aa52b4bdf1780e4f299d12355..eeea65eb5c5121269d52dc932571fa5d5106282d 100644
--- a/views/widget/root_view.cc
+++ b/views/widget/root_view.cc
@@ -12,6 +12,7 @@
#include "ui/base/dragdrop/drag_drop_types.h"
#include "ui/base/keycodes/keyboard_codes.h"
#include "ui/gfx/canvas_skia.h"
+#include "ui/gfx/transform.h"
#include "views/focus/view_storage.h"
#include "views/layout/fill_layout.h"
#include "views/touchui/gesture_manager.h"
@@ -155,6 +156,10 @@ std::string RootView::GetClassName() const {
return kViewClassName;
}
+void RootView::ScheduleComposite() {
+ widget_->SchedulePaintInRect(widget_->GetClientAreaScreenBounds());
sky 2011/08/17 16:39:42 Why is this asking to paint in terms of screen coo
+}
+
void RootView::SchedulePaintInRect(const gfx::Rect& rect) {
MarkLayerDirty();
SchedulePaintInternal(rect);
@@ -163,8 +168,9 @@ void RootView::SchedulePaintInRect(const gfx::Rect& rect) {
void RootView::SchedulePaintInternal(const gfx::Rect& rect) {
gfx::Rect xrect = ConvertRectToParent(rect);
gfx::Rect invalid_rect = GetLocalBounds().Intersect(xrect);
- if (!invalid_rect.IsEmpty())
+ if (!invalid_rect.IsEmpty()) {
sky 2011/08/17 16:39:42 no {}
widget_->SchedulePaintInRect(invalid_rect);
+ }
}
bool RootView::OnMousePressed(const MouseEvent& event) {
« views/view.cc ('K') | « views/widget/root_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698