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

Unified Diff: views/desktop/desktop_background.cc

Issue 8568022: views: Move desktop and touchui directories to ui/views/. (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 | « views/desktop/desktop_background.h ('k') | views/desktop/desktop_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/desktop/desktop_background.cc
diff --git a/views/desktop/desktop_background.cc b/views/desktop/desktop_background.cc
deleted file mode 100644
index e09abe5b4d11c63c6ca5629d53f48bf2963e11cd..0000000000000000000000000000000000000000
--- a/views/desktop/desktop_background.cc
+++ /dev/null
@@ -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 "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 | « views/desktop/desktop_background.h ('k') | views/desktop/desktop_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698