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

Unified Diff: ui/views/desktop/desktop_background.cc

Issue 8598024: Now that we are doing a hard-cut-over to Aura, remove a bunch of *Views based classes that are ob... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/desktop/desktop_background.h ('k') | ui/views/desktop/desktop_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/desktop/desktop_background.cc
===================================================================
--- ui/views/desktop/desktop_background.cc (revision 110826)
+++ ui/views/desktop/desktop_background.cc (working copy)
@@ -1,55 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/views/desktop/desktop_background.h"
-
-#include "ui/gfx/canvas_skia.h"
-#include "ui/gfx/path.h"
-#include "views/view.h"
-
-namespace views {
-namespace desktop {
-
-DesktopBackground::DesktopBackground() {
-}
-
-DesktopBackground::~DesktopBackground() {
-}
-
-void DesktopBackground::Paint(gfx::Canvas* canvas, View* view) const {
- // Paint the sky.
- canvas->FillRect(SK_ColorCYAN, view->GetLocalBounds());
-
- SkPaint paint;
- paint.setAntiAlias(true);
- paint.setStyle(SkPaint::kFill_Style);
-
- // Paint the rolling fields of green.
- {
- gfx::Path path;
- path.moveTo(0, view->height() / 2);
- path.cubicTo(view->height() / 4, view->height() / 4,
- view->height() / 2, view->height() / 2,
- SkIntToScalar(view->width()), view->height() / 2);
- path.lineTo(SkIntToScalar(view->width()), SkIntToScalar(view->height()));
- path.lineTo(0, SkIntToScalar(view->height()));
- path.close();
-
- paint.setColor(SK_ColorGREEN);
- canvas->GetSkCanvas()->drawPath(path, paint);
- }
-
- // Paint the shining sun.
- {
- gfx::Path path;
- path.addCircle(view->height() / 4, view->height() / 8, view->height() / 16);
- path.close();
-
- paint.setColor(SK_ColorYELLOW);
- canvas->GetSkCanvas()->drawPath(path, paint);
- }
-}
-
-} // namespace desktop
-} // namespace views
« no previous file with comments | « ui/views/desktop/desktop_background.h ('k') | ui/views/desktop/desktop_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698