Chromium Code Reviews| Index: ui/aura_shell/desktop_background_view.cc |
| =================================================================== |
| --- ui/aura_shell/desktop_background_view.cc (revision 0) |
| +++ ui/aura_shell/desktop_background_view.cc (revision 0) |
| @@ -0,0 +1,33 @@ |
| +// 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/aura_shell/desktop_background_view.h" |
| + |
| +#include "grit/ui_resources.h" |
| +#include "ui/base/resource/resource_bundle.h" |
| +#include "ui/gfx/canvas.h" |
| + |
| +//////////////////////////////////////////////////////////////////////////////// |
| +// DesktopBackgroundView, public: |
| + |
| +DesktopBackgroundView::DesktopBackgroundView() { |
| + /* |
| + wallpaper_ = *ResourceBundle::GetSharedInstance().GetBitmapNamed( |
| + IDR_AURA_WALLPAPER); |
| + */ |
| +} |
| + |
| +DesktopBackgroundView::~DesktopBackgroundView() { |
| +} |
| + |
| +//////////////////////////////////////////////////////////////////////////////// |
| +// DesktopBackgroundView, views::View overrides: |
| + |
| +void DesktopBackgroundView::OnPaint(gfx::Canvas* canvas) { |
| + canvas->TileImageInt(wallpaper_, 0, 0, width(), height()); |
|
sky
2011/09/15 20:39:36
Comment this out too.
|
| +} |
| + |
| +void DesktopBackgroundView::OnBoundsChanged(const gfx::Rect& previous_bounds) { |
| + LOG(WARNING) << "Here"; |
| +} |
| Property changes on: ui\aura_shell\desktop_background_view.cc |
| ___________________________________________________________________ |
| Added: svn:eol-style |
| + LF |