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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 8405002: ui/gfx: Convert Canvas::FillRectInt() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: save some vertical space, interactive_ui_tests are fixed by Peter's fix 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 "content/browser/renderer_host/render_widget_host_view_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/renderer_host/backing_store_skia.h" 8 #include "content/browser/renderer_host/backing_store_skia.h"
9 #include "content/browser/renderer_host/render_widget_host.h"
9 #include "content/browser/renderer_host/web_input_event_aura.h" 10 #include "content/browser/renderer_host/web_input_event_aura.h"
10 #include "content/browser/renderer_host/render_widget_host.h"
11 #include "content/public/browser/native_web_keyboard_event.h" 11 #include "content/public/browser/native_web_keyboard_event.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
13 #include "ui/aura/desktop.h" 13 #include "ui/aura/desktop.h"
14 #include "ui/aura/event.h" 14 #include "ui/aura/event.h"
15 #include "ui/aura/hit_test.h" 15 #include "ui/aura/hit_test.h"
16 #include "ui/aura/window.h" 16 #include "ui/aura/window.h"
17 #include "ui/gfx/canvas.h" 17 #include "ui/gfx/canvas.h"
18 #include "ui/gfx/compositor/layer.h" 18 #include "ui/gfx/compositor/layer.h"
19 19
20 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) 20 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT)
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 } 380 }
381 381
382 void RenderWidgetHostViewAura::OnPaint(gfx::Canvas* canvas) { 382 void RenderWidgetHostViewAura::OnPaint(gfx::Canvas* canvas) {
383 if (!window_->IsVisible()) 383 if (!window_->IsVisible())
384 return; 384 return;
385 BackingStore* backing_store = host_->GetBackingStore(true); 385 BackingStore* backing_store = host_->GetBackingStore(true);
386 if (backing_store) { 386 if (backing_store) {
387 static_cast<BackingStoreSkia*>(backing_store)->SkiaShowRect(gfx::Point(), 387 static_cast<BackingStoreSkia*>(backing_store)->SkiaShowRect(gfx::Point(),
388 canvas); 388 canvas);
389 } else { 389 } else {
390 canvas->FillRectInt(SK_ColorWHITE, 0, 0, window_->bounds().width(), 390 canvas->FillRect(SK_ColorWHITE,
391 window_->bounds().height()); 391 gfx::Rect(gfx::Point(), window_->bounds().size()));
392 } 392 }
393 } 393 }
394 394
395 void RenderWidgetHostViewAura::OnWindowDestroying() { 395 void RenderWidgetHostViewAura::OnWindowDestroying() {
396 } 396 }
397 397
398 void RenderWidgetHostViewAura::OnWindowDestroyed() { 398 void RenderWidgetHostViewAura::OnWindowDestroyed() {
399 host_->ViewDestroyed(); 399 host_->ViewDestroyed();
400 delete this; 400 delete this;
401 } 401 }
(...skipping 16 matching lines...) Expand all
418 } 418 }
419 #endif 419 #endif
420 420
421 //////////////////////////////////////////////////////////////////////////////// 421 ////////////////////////////////////////////////////////////////////////////////
422 // RenderWidgetHostViewAura, private: 422 // RenderWidgetHostViewAura, private:
423 423
424 void RenderWidgetHostViewAura::UpdateCursorIfOverSelf() { 424 void RenderWidgetHostViewAura::UpdateCursorIfOverSelf() {
425 //NOTIMPLEMENTED(); 425 //NOTIMPLEMENTED();
426 // TODO(beng): See RenderWidgetHostViewWin. 426 // TODO(beng): See RenderWidgetHostViewWin.
427 } 427 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698